From 6054189059eaba9e8bd6d53213c40ccde56639e6 Mon Sep 17 00:00:00 2001 From: teastep Date: Sat, 14 Jan 2006 20:55:54 +0000 Subject: [PATCH] Fix ipsets bug git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3286 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall/firewall | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Shorewall/firewall b/Shorewall/firewall index 3cffe372c..3aaf7e2ba 100755 --- a/Shorewall/firewall +++ b/Shorewall/firewall @@ -2132,8 +2132,11 @@ stop_firewall() { # We must purge iptables to be sure that there are no # references to ipsets # - iptables -F - iptables -X + for table in mangle nat filter; do + iptables -t $table -F + iptables -t $table -X + done + ${RESTOREPATH}-ipsets fi @@ -9184,8 +9187,11 @@ stop_firewall() # We must purge iptables to be sure that there are no # references to ipsets # - iptables -F - iptables -X + for table in nat mangle filter; do + iptables -t \$table -F + iptables -t \$table -X + done + \${RESTOREPATH}-ipsets fi