-
Notifications
You must be signed in to change notification settings - Fork 259
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
Exists() method returns false for existing rule. #79
Comments
siddhant94
changed the title
Exists methods returns incorrect result
Exists() methods returns incorrect result
Jan 4, 2021
siddhant94
changed the title
Exists() methods returns incorrect result
Inconsistent behaviour for Exists() method.
Jan 5, 2021
siddhant94
changed the title
Inconsistent behaviour for Exists() method.
Exists() method returns false for existing rule.
Jan 5, 2021
Copy-pasting from the above-linked K3s issue: There appears to be a bug in Debian's nftables kernel support that prevents it from properly checking iptables rules; it seems to reorder the modules so that they cannot be checked for in the order originally input:
This works properly after running
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am using go-iptables
v0.4.5
,The following function returns false for existing rules.
My application is deployed on a node running
ubuntu 20.04.1 LTS
release.For the below arg, the exists method return false whereas checking it manually I see it there.
table: filter, Chain: CUSTOM_CHAIN, rule: [-m comment --comment "Comment text" -j ACCEPT]
Also, the List(table, chain) method call works as expected and I am able to find my rule in its return value.
The text was updated successfully, but these errors were encountered: