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

Stops Working in Deny All Mode #470

Open
atiqullah-ahmadzai opened this issue Jan 20, 2025 · 3 comments · May be fixed by #474
Open

Stops Working in Deny All Mode #470

atiqullah-ahmadzai opened this issue Jan 20, 2025 · 3 comments · May be fixed by #474

Comments

@atiqullah-ahmadzai
Copy link

In deny all mode, when I whitelist an IP, it works for few minutes and then it blocks all traffic, not even working for the whitelisted IP.
Here is the status command result:

CURRENT XDP-FILTER STATUS:

Aggregate per-action statistics:
XDP_ABORTED 0 pkts 0 KiB
XDP_DROP 0 pkts 0 KiB
XDP_PASS 6 pkts 0 KiB

Loaded on interfaces:
Enabled features
xdpfilt_dny_all
eth0 (native mode) tcp,udp,ipv6,ipv4,ethernet,deny

Filtered ports:
Mode Hit counter

Filtered IP addresses:
Mode Hit counter
1.1.1.1 src,dst 0
x.x.x.x src,dst 6
x.x.x.x src,dst 0

Filtered MAC addresses:
Mode Hit counter

@tohojo
Copy link
Member

tohojo commented Jan 21, 2025 via email

@atiqullah-ahmadzai
Copy link
Author

ip neigh screenshot before starting
Image

Here is the screenshot after it started when it was working
Image

ip neigh after stopped working
Image

status after stopped working
Image

@tohojo
Copy link
Member

tohojo commented Feb 10, 2025

Okay, so assuming those censored IP addresses are the ones you are trying to
talk to, this is probably because xdp-filter is not handling ARP requests
correctly, which leads to timeouts (going from REACHABLE to STALE/INCOMPLETE in
your ip neigh commands).

Could you please try out #474 and see if that helps?

@tohojo tohojo linked a pull request Feb 10, 2025 that will close this issue
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 a pull request may close this issue.

2 participants