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

"iptables_fw_destroy_mention" does not always delete the desired rules #275

Open
imnobodyet opened this issue Mar 22, 2017 · 0 comments
Open

Comments

@imnobodyet
Copy link

Hi, all
The function "iptables_fw_destroy_mention" deletes iptables rules by specify rule numbers (selected by matching the given string), normally it does right, but in rare cases if some other rules are inserted by other apps after it gets the rule list and before it deletes it, the rule numbers of the list are no longer the right ones, hence it deletes the wrong rules. (in my case, I have multiple wifidog instance running, and sometimes one's rules are deleted by others)

One of my thought is to use "-S" instead of "-L" option, i.e, using
"iptables -w -t TABLE -S CHAIN| grep -F 'MENTION'" to select desired rules string, and then delete them by using these rules string.

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

No branches or pull requests

1 participant