Commit Graph

  • cb3af158f0 Merge pull request #59 from gamemann/20250226-logging Christian Deacon 2025-02-26 13:09:37 -05:00
  • 4709696085 Update README. Christian Deacon 2025-02-26 13:01:28 -05:00
  • 726e6f700f Update demos. Christian Deacon 2025-02-26 12:59:42 -05:00
  • 073f656da1 Improve stats output. Christian Deacon 2025-02-26 12:31:16 -05:00
  • e54fb3fe79 Add more info to filter logging. Christian Deacon 2025-02-26 12:16:33 -05:00
  • f27481fb3b Add comment to HandleRbEvent() function. Christian Deacon 2025-02-26 12:01:10 -05:00
  • 53e801be8f Set verbose to 2 by default. Christian Deacon 2025-02-26 11:59:18 -05:00
  • b3a9693d80 Add tool info function. Christian Deacon 2025-02-26 11:57:48 -05:00
  • 24db0f6bda Fix error. Christian Deacon 2025-02-26 11:49:53 -05:00
  • 8b91e59364 Set custom LibXDP/LibBPF logging. Christian Deacon 2025-02-26 11:48:38 -05:00
  • 75ee52555c Update README. Christian Deacon 2025-02-26 11:21:12 -05:00
  • 8596997b98 Add filter logging. Christian Deacon 2025-02-26 11:13:59 -05:00
  • 3878bacb71 Update README. Christian Deacon 2025-02-26 09:58:13 -05:00
  • bf761af250 Implement new logging system. Christian Deacon 2025-02-26 09:56:28 -05:00
  • b943c0d5f7 Update help menu in install.sh. Christian Deacon 2025-02-24 18:54:51 -05:00
  • 801cb3b47c Merge pull request #58 from gamemann/20250224-include-improvements Christian Deacon 2025-02-24 16:25:11 -05:00
  • e14f980107 Improve verbose output. Christian Deacon 2025-02-24 16:03:37 -05:00
  • de429d143f Build the project using LIBXDP_STATIC=1 by default. Christian Deacon 2025-02-24 15:59:29 -05:00
  • d288a78775 Restructure includes. Christian Deacon 2025-02-24 15:35:23 -05:00
  • 42738c7670 Optimize looping through filters when updating them. Christian Deacon 2025-02-24 14:58:11 -05:00
  • c6db811db1 Update README. Christian Deacon 2025-02-23 17:47:33 -05:00
  • f5d9d3a8d5 Update workflow and Makefile. Christian Deacon 2025-02-23 17:31:36 -05:00
  • 816960bf39 Add build/install scripts and improve README. Christian Deacon 2025-02-23 17:27:27 -05:00
  • f771412f6e Update README. Christian Deacon 2025-02-23 07:58:04 -05:00
  • c3965b8772 Merge pull request #57 from gamemann/20250223-morerestructuring Christian Deacon 2025-02-23 07:56:39 -05:00
  • 6047718c6a Add another note. Christian Deacon 2025-02-23 07:43:12 -05:00
  • 247b752e4a Update comment note. Christian Deacon 2025-02-23 07:41:51 -05:00
  • eae98244b2 Move a couple constants from constants.h to config.h. Christian Deacon 2025-02-23 07:38:03 -05:00
  • 6b9b101a62 Organize Makefile. Christian Deacon 2025-02-23 07:32:59 -05:00
  • 6298d7ee17 conf_stat shouldn't be global and organize more code. Christian Deacon 2025-02-23 07:26:51 -05:00
  • e5c11bb20c Organize codeand potentially increase performance in XDP program. Christian Deacon 2025-02-23 07:15:37 -05:00
  • 4e7c563274 Add better error handling to loader. Christian Deacon 2025-02-23 07:15:12 -05:00
  • f093bf96c4 Add more error handling when detaching XDP program. Christian Deacon 2025-02-23 06:42:37 -05:00
  • 28c99fe1ec Check for detach mode before verbose output. Christian Deacon 2025-02-23 06:42:16 -05:00
  • ea47a7a435 Cleanup and organize a lot of Loader code. Christian Deacon 2025-02-23 06:34:37 -05:00
  • b27558cee7 Update Makefile. Christian Deacon 2025-02-23 06:34:06 -05:00
  • 3b55e4dded Add Loader XDP source files. Christian Deacon 2025-02-23 06:33:56 -05:00
  • b6b43b67c2 Add Loader stats source files. Christian Deacon 2025-02-23 06:33:40 -05:00
  • 1f1c76854b Improve generic code. Christian Deacon 2025-02-22 21:31:45 -05:00
  • 2a1dbc6626 Remove unused variables inside of Makefile. Christian Deacon 2025-02-22 12:22:21 -05:00
  • 422d23e87b Fix build error with LIBBPF_LIBXDP_STATIC=1 due to missing LibBPF and LibXDP object files when linking and simplify build process further. Christian Deacon 2025-02-22 12:15:57 -05:00
  • 324405ac26 Update XDP Tools submodule. Christian Deacon 2025-02-22 12:00:16 -05:00
  • fd765890e9 Rename loader.c to prog.c for organization. Christian Deacon 2025-02-22 11:50:13 -05:00
  • e3b1f04c11 Organize cmdline util. Christian Deacon 2025-02-22 11:41:48 -05:00
  • 060aafbaf5 Add note in README. Christian Deacon 2025-02-22 11:41:21 -05:00
  • 117ec22632 Oops, remove LibXDP install in run workflow. Christian Deacon 2025-02-22 10:59:07 -05:00
  • 179cbeab6a Add support for linking LibBPF and LibXDP object files inside of Makefile if LIBBPF_LIBXDP_STATIC is 1. Christian Deacon 2025-02-22 10:56:49 -05:00
  • 73cf82303e We need to install LibXDP inside of the run workflow. Christian Deacon 2025-02-22 10:46:20 -05:00
  • 155e263368 Merge branch 'master' of github.com:gamemann/XDP-Firewall Christian Deacon 2025-02-22 10:42:53 -05:00
  • 0efcdb413a Update build workflow. Christian Deacon 2025-02-22 10:42:03 -05:00
  • 7bdf5d20e1 Merge pull request #56 from gamemann/20250222-restructure Christian Deacon 2025-02-22 10:40:26 -05:00
  • 7f59b678cf Update links in README. Christian Deacon 2025-02-22 10:29:19 -05:00
  • 09491e1462 Add typedefs and organize code. Christian Deacon 2025-02-22 10:24:21 -05:00
  • 1b9e805207 Organize more code. Christian Deacon 2025-02-22 10:06:32 -05:00
  • c7a1822ce5 Rename some config constants. Christian Deacon 2025-02-22 10:05:49 -05:00
  • 50b0efa58a Add note about linked objects not working with __always_inline functions. Christian Deacon 2025-02-22 10:02:35 -05:00
  • 8a4ddf5184 We don't need to specifically link LibBPF and LibXDP object files. Christian Deacon 2025-02-22 10:02:08 -05:00
  • 8756892791 Restructure project and organize code. Christian Deacon 2025-02-22 09:50:57 -05:00
  • e3d47fda6f Oops, fix error with USE_FLOW_RL commented. Christian Deacon 2025-02-11 08:19:51 -05:00
  • 376b39d307 No need to pass ip_stats to function. Christian Deacon 2025-02-11 08:17:20 -05:00
  • 82d3c50bf3 Add flow-based client stats by default for rate limits and organize/clean code. Christian Deacon 2025-02-11 07:51:40 -05:00
  • 91138f1116 Add IPv4 CIDR support and clean up code. Christian Deacon 2024-08-13 02:55:01 -04:00
  • 1ce17ddd77 Update README. Christian Deacon 2024-07-15 21:51:41 -04:00
  • 62c610f577 Decrease max filters from 80 to 60. Christian Deacon 2024-07-15 21:44:13 -04:00
  • 110e27d206 Improve documentation. Christian Deacon 2024-07-05 18:08:32 -04:00
  • 804e5a9670 Update README. Christian Deacon 2024-07-05 02:11:31 -04:00
  • b0403b4e96 Improve documentation and README. Christian Deacon 2024-07-05 00:50:49 -04:00
  • e22168bb0f Update README. Christian Deacon 2024-07-04 23:55:53 -04:00
  • 8a7619dbdf Update README. Christian Deacon 2024-06-13 20:44:31 -04:00
  • a53e01d0fe Set interface option to NULL by default. Christian Deacon 2024-06-13 20:36:23 -04:00
  • f480f06c4b Rename config settings for consistency. Christian Deacon 2024-06-13 20:33:09 -04:00
  • a80458efff Uncomment DOSTATSONBLOCKMAP by default. Christian Deacon 2024-06-13 20:24:40 -04:00
  • 236c25cdfa Update example config. Christian Deacon 2024-06-13 20:24:21 -04:00
  • 525b9465cf Add std_update_time option. Christian Deacon 2024-06-13 20:03:21 -04:00
  • bbacda45b3 Add pass counter for packets that don't match any rules and are passed to user-space. Christian Deacon 2024-06-13 19:54:50 -04:00
  • 648dbff479 Use unlikely() again. Christian Deacon 2024-06-13 19:30:16 -04:00
  • 1dad5509a4 Use unlikely with checking layer-4 headers. Christian Deacon 2024-06-13 19:29:50 -04:00
  • e213b5c231 Rework PPS/BPS logic to improve performance. Christian Deacon 2024-06-13 19:27:56 -04:00
  • 1f66f7ab4e Add NANO_TO_SEC constant. Christian Deacon 2024-06-13 19:23:54 -04:00
  • a180aa3dc9 Add demo GIF. Christian Deacon 2024-04-22 22:11:04 -04:00
  • 69f7456423 Align filters structure by 8 bytes to per-CPU map. Christian Deacon 2023-12-12 23:38:57 +00:00
  • 8930d8f7ed Add note regarding performance with for loop. Christian Deacon 2023-11-28 04:55:29 +00:00
  • 3640c6a840 Elf object is included in later LibBPF libraries. Christian Deacon 2023-11-22 20:00:02 +00:00
  • 512b4393ff Add comment to Makefile. Christian Deacon 2023-11-22 19:55:23 +00:00
  • 907408be7a Link new static LibBPF objects in our loader. Christian Deacon 2023-11-22 19:53:43 +00:00
  • a5f72f7edc Update xdp-tools and libbpf. Christian Deacon 2023-11-22 19:52:12 +00:00
  • 810bc6b3c7 Only build LibXDP from xdp-tools. Christian Deacon 2023-11-22 19:49:45 +00:00
  • b3530e3e68 Use per CPU array map for filter rules to increase performance. Christian Deacon 2023-11-12 21:35:22 +00:00
  • 03d38b55e1 Update README. Christian Deacon 2023-10-12 00:06:06 +00:00
  • 0601364233 Revert "fix linker issue (#42)" Christian Deacon 2023-10-11 23:04:53 +00:00
  • cc1e033a7f fix linker issue (#42) pettai 2023-10-12 00:47:52 +02:00
  • c089d82aed Make LibXDP in workflow. Christian Deacon 2023-10-11 22:44:07 +00:00
  • c12496abb6 Lower MAX_FILTERS to 80 to fix error related to BPF program too large. Christian Deacon 2023-10-11 22:05:30 +00:00
  • d5fe99c69a XDP tools already defines bpf_printk() now. Christian Deacon 2023-06-19 19:12:38 +00:00
  • c27398ecec Indent code properly for neatness. Christian Deacon 2023-06-19 19:11:42 +00:00
  • f94354685b Remove old LibBPF. Christian Deacon 2023-06-09 09:11:53 +00:00
  • 78e8bcdc76 Oops. Christian Deacon 2023-06-06 21:50:11 +00:00
  • 0c2ddd4349 Add more details to README. Christian Deacon 2023-06-06 21:46:35 +00:00
  • 32e316adda Update README; Prepend sudo to apt commands. Christian Deacon 2023-06-06 21:44:04 +00:00
  • 91d9cf814f Update GitHub workflow with new depedencies. Christian Deacon 2023-06-06 21:35:28 +00:00