fff-firewall: Flush all installed tables.

With this patch all installed tables are flushed.
We no longer have to worry about the modules
installed or not. (nat, mangle ...)

Signed-off-by: Robert Langhammer <rlanghammer@web.de>
This commit is contained in:
Robert Langhammer 2021-03-03 20:56:38 +01:00
parent 51d3858ed4
commit 2fb7ced585
1 changed files with 2 additions and 5 deletions

View File

@ -2,8 +2,5 @@
ebtables -F
ebtables -X
iptables -F
iptables -X
ip6tables -F
ip6tables -X
iptables-save | awk '/^[*]/ { print $1 } /^:[A-Z]+ [^-]/ { print $1 " ACCEPT" ; } /COMMIT/ { print $0; }' | iptables-restore
ip6tables-save | awk '/^[*]/ { print $1 } /^:[A-Z]+ [^-]/ { print $1 " ACCEPT" ; } /COMMIT/ { print $0; }' | ip6tables-restore