Commit Graph

364 Commits

Author SHA1 Message Date
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
2c9312c574 Disable source IP-based rate limiting by default and add note to README. 2025-03-25 11:06:54 -04:00
Christian Deacon
fd013b4b4a Clean up code. 2025-03-24 10:52:41 -04:00
Christian Deacon
3733bbcdaa Fix issue with setting rate limits with xdpfw-add and update README. 2025-03-23 21:57:37 -04:00
Christian Deacon
51b9c2b76a Fix UDP destination port not matching. 2025-03-23 21:51:59 -04:00
Christian Deacon
14121a4f35 Update README. 2025-03-23 21:51:35 -04:00
Christian Deacon
4f43a3fb1c Merge pull request #67 from gamemann/20250322-rl-changes
Add Flow And IP-Based Rate Limiting
2025-03-23 21:50:57 -04:00
Christian Deacon
dcfa506264 Update README. 2025-03-23 21:15:15 -04:00
Christian Deacon
b4a1c00149 Update README. 2025-03-23 21:09:39 -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
2727740a64 Merge pull request #65 from gamemann/20250321-port-range
Single Port Range Support With Dynamic Filters
2025-03-21 19:08:02 -04:00
Christian Deacon
444ca94970 Update README. 2025-03-21 18:28:36 -04:00
Christian Deacon
3e813ee770 Update xdpfw-add program. 2025-03-21 18:22:01 -04:00
Christian Deacon
6651f731b5 Add port range support to config. 2025-03-21 18:21:50 -04:00
Christian Deacon
783fcef19a Update XDP filter layout with port range support. 2025-03-21 18:21:31 -04:00
Christian Deacon
e4605c81a3 Add util function to parse port ranges. 2025-03-21 18:20:52 -04:00
Christian Deacon
e9e9027fe7 Fix issues with IP range drop map. 2025-03-13 08:08:22 -04:00
Christian Deacon
5a6fff2ba6 Revert interface setting rename so it doesn't break existing configurations. 2025-03-10 19:30:00 -04:00
Christian Deacon
a2a11cf6a3 Change block time type in xdpfw-add util. 2025-03-10 19:04:51 -04:00
Christian Deacon
ec8fd4a65d Merge pull request #63 from gamemann/20250306-multiple-interfaces
Multiple Interfaces Support + Reworking & Improving Code
2025-03-10 18:52:38 -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
9ecbf7fc4a Update README. 2025-03-10 17:07:28 -04:00
Christian Deacon
0ac80d7452 Make sure XDP program has attached at least once. 2025-03-10 16:18:15 -04:00
Christian Deacon
d0a62b0a16 Update README. 2025-03-10 16:13:21 -04:00
Christian Deacon
f0e505555d Update default config. 2025-03-10 16:13:13 -04:00
Christian Deacon
5d7ca715d1 Implement support for multiple interfaces and improve code. 2025-03-10 16:08:43 -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
fee8ca8757 Merge pull request #60 from gamemann/20250227-pin-map
Pinning Maps, New CLI Utils, & IP Range Dropping
2025-03-01 14:14:21 -05:00
Christian Deacon
d9af7e2115 Update README. 2025-03-01 13:57:02 -05:00
Christian Deacon
b18124b071 Disable IP ranges drop map by default. 2025-03-01 13:51:18 -05:00
Christian Deacon
8756bbcdb8 Update xdpfw-add and xdpfw-del utils. 2025-03-01 13:48:06 -05:00
Christian Deacon
de3739d027 Treat block time of 0 as indefinitely. 2025-03-01 13:47:55 -05:00
Christian Deacon
786b472287 Improve xdpfw-add util. 2025-03-01 13:35:21 -05:00
Christian Deacon
b0385f975d Update README. 2025-03-01 13:03:05 -05:00
Christian Deacon
e4464e1961 Set CLI integer values to -1 by default in xdpfw-add. 2025-03-01 13:00:06 -05:00
Christian Deacon
bfbc1a7554 Organize code. 2025-03-01 12:59:38 -05:00
Christian Deacon
a410e928f2 Update README. 2025-03-01 12:59:10 -05:00
Christian Deacon
628b18f32d Update README. 2025-03-01 12:08:37 -05:00
Christian Deacon
a0a812a7f0 Start working on xdpfw-add and xdpfw-del utilities. 2025-03-01 10:40:28 -05:00
Christian Deacon
2dd90d8c56 Update .gitignore. 2025-03-01 10:40:06 -05:00
Christian Deacon
730852592b Update Makefile. 2025-03-01 10:39:59 -05:00
Christian Deacon
bab579949e Update hard-code config and types. 2025-03-01 10:39:38 -05:00
Christian Deacon
2019029a4d Continue preparing Loader for new features. 2025-03-01 10:39:11 -05:00
Christian Deacon
ff1ac4e817 Add support for IP range drop and make features more modular. 2025-03-01 10:38:45 -05:00