From 2fb7ced5855f6c746309a969ad99b0023a797323 Mon Sep 17 00:00:00 2001 From: Robert Langhammer Date: Wed, 3 Mar 2021 20:56:38 +0100 Subject: [PATCH] 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 --- .../fff/fff-firewall/files/usr/lib/firewall.d/00-prepare | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/packages/fff/fff-firewall/files/usr/lib/firewall.d/00-prepare b/src/packages/fff/fff-firewall/files/usr/lib/firewall.d/00-prepare index 5a1b9aaf..c2175f62 100644 --- a/src/packages/fff/fff-firewall/files/usr/lib/firewall.d/00-prepare +++ b/src/packages/fff/fff-firewall/files/usr/lib/firewall.d/00-prepare @@ -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 -- 2.39.2