From 1bfe6ded8053651313a6a1db2005c7fcf2ca9e3d Mon Sep 17 00:00:00 2001 From: Brielle Bruns Date: Fri, 12 Jul 2019 13:14:51 -0600 Subject: [PATCH] Add purge/delete rules for raw on flush --- lib/iptables.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/iptables.inc b/lib/iptables.inc index ffcd6a4..23d5df6 100644 --- a/lib/iptables.inc +++ b/lib/iptables.inc @@ -42,6 +42,8 @@ function iptables_rules_flush { ${VER_IPTABLES} -t nat -X &>/dev/null ${VER_IPTABLES} -t mangle -F &>/dev/null ${VER_IPTABLES} -t mangle -X &>/dev/null + ${VER_IPTABLES} -t raw -F &>/dev/null + ${VER_IPTABLES} -t raw -X &>/dev/null for i in `cat $TABLE_NAMES`; do ${VER_IPTABLES} -F -t $i &>/dev/null done