Christian Deacon
fd20b61cf2
Fix wrong setting name for interface(s).
2025-10-14 22:28:12 -04:00
AbdulOmar
c0543b2036
Unpin block IPv6 map only if IPV6 is enabled ( #82 )
...
There's no need to try to unpin the map if its not enabled at first. Just to prevent:
[WARNING] Failed to un-pin BPF map 'map_block6' from file system (1)
2025-10-07 18:32:17 -04:00
An Bool
a924233b46
Enable Pinning for map_stats ( #78 )
...
Co-authored-by: Christian Deacon <christianmdeacon@gmail.com >
2025-06-21 18:04:40 -04:00
Christian Deacon
2b570c2246
Update xdp-tools submodule.
2025-06-17 21:24:13 -04:00
Christian Deacon
82231f22ef
Update README.
2025-05-05 13:30:01 -04:00
Christian Deacon
67a77ce659
Update README.
2025-05-02 21:05:29 -04:00
Christian Deacon
7dc351f352
Update README.
2025-03-28 22:25:36 -04:00
Christian Deacon
ec0b07eb37
Optimize XDP program when filter logging is disabled.
2025-03-28 22:21:31 -04:00
Christian Deacon
023a853000
Improve workflows.
2025-03-28 21:26:01 -04:00
Christian Deacon
e71f05a422
Install LibXDP in run workflow.
2025-03-28 13:48:39 -04:00
Christian Deacon
947e02c9ce
Fix run workflow.
2025-03-28 13:43:07 -04:00
Christian Deacon
05d013ff6a
Fix issue with dst_port when filter logging is disabled.
2025-03-28 13:42:19 -04:00
Christian Deacon
78de4c0292
Try reverting to old format we used with workflow for now.
2025-03-28 13:38:37 -04:00
Christian Deacon
2e54efc30d
Try specifying build-output in run.yml workflow.
2025-03-28 13:33:10 -04:00
Christian Deacon
20cb84cd06
Workflow Improvements ( #69 )
...
This PR attempts to run the XDP program for 10 seconds when running the `run.yml` workflow instead of printing the help menu.
2025-03-28 13:26:18 -04:00
Christian Deacon
3062ddd166
Cleanup code and filter output.
2025-03-28 11:48:25 -04:00
Christian Deacon
8b4be2ee2f
Merge pull request #68 from gamemann/20250327-loop-improvements
...
Major Loop Improvements
2025-03-27 20:58:32 -04:00
Christian Deacon
88b1e0f02b
Update README.
2025-03-27 20:53:50 -04:00
Christian Deacon
095d513ebd
Update README.
2025-03-27 20:37:14 -04:00
Christian Deacon
148385b3e7
Add support for bpf_loop().
2025-03-27 20:36:20 -04:00
Christian Deacon
6001428130
Update README.
2025-03-25 11:59:06 -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
135cd1526e
Don't convert UDP port range to network byte order when setting filter.
2025-03-25 11:36:17 -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
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