Commit Graph

32 Commits

Author SHA1 Message Date
Christian Deacon
148385b3e7 Add support for bpf_loop(). 2025-03-27 20:36:20 -04:00
Christian Deacon
1a637cffab Improve protocol check. 2025-03-25 11:47:41 -04:00
Christian Deacon
60fcd6fc5a Missed one last ntohs() on UDP destination port. 2025-03-25 11:37:55 -04:00
Christian Deacon
869eaf668b Fix issue with port range matching due to port in network byte order. 2025-03-25 11:35:33 -04:00
Christian Deacon
2060f41081 Add option to disable IPv6 to speed up performance of XDP program. 2025-03-25 11:25:15 -04:00
Christian Deacon
fd013b4b4a Clean up code. 2025-03-24 10:52:41 -04:00
Christian Deacon
51b9c2b76a Fix UDP destination port not matching. 2025-03-23 21:51:59 -04:00
Christian Deacon
b1bb658a58 Unroll by 30. 2025-03-23 20:47:27 -04:00
Christian Deacon
0c77037537 Unroll main filters loop to save instructions with BPF verifier and potentially improve performance. 2025-03-23 20:36:28 -04:00
Christian Deacon
5aa3270f82 Implement both IP and flow-based rate limiting. 2025-03-23 20:35:08 -04:00
Christian Deacon
783fcef19a Update XDP filter layout with port range support. 2025-03-21 18:21:31 -04:00
Christian Deacon
e9e9027fe7 Fix issues with IP range drop map. 2025-03-13 08:08:22 -04:00
Christian Deacon
d5c2413838 Clean up code. 2025-03-10 18:04:14 -04:00
Christian Deacon
c88a010aae Rework IPv6 header matching with dynamic filters and add packet length to logging event. 2025-03-10 17:08:03 -04:00
Christian Deacon
888028bac3 Rework stat incrementing in XDP program. 2025-03-06 15:55:31 -05:00
Christian Deacon
ad045b5b84 Separate filter rule structures from config and BPF map. 2025-03-06 15:49:14 -05:00
Christian Deacon
916189a498 Rename functions and cmdline to cli for organization. 2025-03-06 13:49:09 -05:00
Christian Deacon
e1b0fec39e Update README. 2025-03-02 20:54:59 -05:00
Christian Deacon
de3739d027 Treat block time of 0 as indefinitely. 2025-03-01 13:47:55 -05:00
Christian Deacon
ff1ac4e817 Add support for IP range drop and make features more modular. 2025-03-01 10:38:45 -05:00
Christian Deacon
5f817f466b Fix issue with updating IPv6 client stats and rename map names. 2025-02-27 07:09:30 -05:00
Christian Deacon
47753af3d5 Change default log file path and clean up some code. 2025-02-27 07:03:41 -05:00
Christian Deacon
c631266061 Optimize inserting filters into BPF map. 2025-02-27 06:59:52 -05:00
Christian Deacon
2b79964407 Update install script. 2025-02-26 17:10:04 -05:00
Christian Deacon
d9998580f2 Split logging logic from XDP program into its own files. 2025-02-26 16:31:45 -05:00
Christian Deacon
e54fb3fe79 Add more info to filter logging. 2025-02-26 12:16:33 -05:00
Christian Deacon
8596997b98 Add filter logging. 2025-02-26 11:13:59 -05:00
Christian Deacon
e5c11bb20c Organize codeand potentially increase performance in XDP program. 2025-02-23 07:15:37 -05:00
Christian Deacon
09491e1462 Add typedefs and organize code. 2025-02-22 10:24:21 -05:00
Christian Deacon
1b9e805207 Organize more code. 2025-02-22 10:06:32 -05:00
Christian Deacon
c7a1822ce5 Rename some config constants. 2025-02-22 10:05:49 -05:00
Christian Deacon
8756892791 Restructure project and organize code. 2025-02-22 09:50:57 -05:00