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

examples: add a XDP firewall example using LPM trie #711

Closed
wants to merge 1 commit into from

Conversation

lobshunter
Copy link

Signed-off-by: lob [email protected]

This PR adds another XDP example. This program is a XDP version of firewall.
It uses BPF_MAP_TYPE_LPM_TRIE to match IP of incoming packets against the block CIDR. IPv4 packets with source address belonging to block CIDR will be dropped.

Related issue: #645.

@lmb
Copy link
Collaborator

lmb commented Jun 15, 2022

Thanks for writing up this example, however I think that its scope is too big for this repository. Adding the LPM map makes for a nice demo but it doesn't make XDP usage clearer than the existing example.

What would be nice is to add a netlink fallback to the example from #706.

@lmb lmb closed this Jun 15, 2022
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.

None yet

2 participants