Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pinning Maps, New CLI Utils, & IP Range Dropping #60

Merged
merged 19 commits into from
Mar 1, 2025
Merged

Conversation

gamemann
Copy link
Owner

@gamemann gamemann commented Mar 1, 2025

This PR introduces the option to pin the firewall's main BPF maps (dynamic filters, block map, and IP range dropping) to the file system. With this change, I've created two utilities, xdpfw-add and xdpfw-del. These utilities are used to add or delete dynamic filters, IP ranges from the drop list, and source IPs from the block list.

Additionally, new functionality that allows you to drop IP ranges (CIDR-based) has been added, but disabled by default. I've also made each core feature (dynamic filters, IP range dropping, and source IP blocking) modular so a user can enable or disable them if needed for better performance.

Other than the above, I've had to rewrite a lot of code and also revamped the README in an effort to make it more organized (still a work-in-progress).

@gamemann gamemann merged commit fee8ca8 into master Mar 1, 2025
3 checks passed
@gamemann gamemann deleted the 20250227-pin-map branch March 1, 2025 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant