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

Handle neighbour requests in xdp-filter #474

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

tohojo
Copy link
Member

@tohojo tohojo commented Feb 10, 2025

When using IP filter mode in xdp-filter, we don't parse neighbour requests (ARP
for IPv4, ND ICMPv6 packets for IPv6), which can lead to loss of connectivity in
deny-default mode. Add parsing of both types of neighbour packets and pass them
through the requisite filters.

In deny-all mode xdp-filter breaks connectivity because it ends up
dropping ARP packets. Add parsing of ARP packets and run the src/target
IP of the ARP request/response through the same IP filter rules as the
IP packets themselves.

Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
Like with ARP packets for IPv4, make sure we pass neighbour
solicitations and advertisements through the filter rules for IPv6, to
avoid connectivity breaking in deny-all mode.

Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
@tohojo tohojo linked an issue Feb 10, 2025 that may be closed by this pull request
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.

Stops Working in Deny All Mode
1 participant