From 93106ff9d6e30316744db2a567f4cd3ce591f1a3 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/fff-firewall/files/usr/lib/firewall.d/00-prepare | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/packages/fff/fff-firewall/Makefile b/src/packages/fff/fff-firewall/Makefile index 6a58cabc..3bf49c35 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:=5 +PKG_RELEASE:=6 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) 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..d3f3da28 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,11 @@ 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