From 50132381669e578bedac942d0c86ce5176fec282 Mon Sep 17 00:00:00 2001 From: Christian Dresel Date: Thu, 28 Jan 2021 09:46:33 +0100 Subject: [PATCH] fff-firewall: Flush nat und mangle iptables table We should flush all tables and not only filter to reset the complete firewall Signed-off-by: Christian Dresel --- src/packages/fff/fff-firewall/Makefile | 2 +- .../fff-firewall/files/usr/lib/firewall.d/00-prepare | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/packages/fff/fff-firewall/Makefile b/src/packages/fff/fff-firewall/Makefile index 6384a899..42a5b31f 100644 --- a/src/packages/fff/fff-firewall/Makefile +++ b/src/packages/fff/fff-firewall/Makefile @@ -1,7 +1,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=fff-firewall -PKG_RELEASE:=7 +PKG_RELEASE:=8 include $(INCLUDE_DIR)/package.mk 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..f3899c90 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 @@ -5,5 +5,17 @@ ebtables -X iptables -F iptables -X +iptables -F -t nat +iptables -X -t nat + +iptables -F -t mangle +iptables -X -t mangle + ip6tables -F ip6tables -X + +ip6tables -F -t nat +ip6tables -X -t nat + +ip6tables -F -t mangle +ip6tables -X -t mangle