From 0078819fec17dfb9ffa4959a308e5c80727791e5 Mon Sep 17 00:00:00 2001 From: segler Date: Tue, 25 Jan 2011 19:31:33 +0000 Subject: [PATCH] flushing and deleting chains when shut corrected git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_iptables@5948 504e572c-2e33-0410-9681-be2bf7408885 --- etc/init.d/firewall | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/etc/init.d/firewall b/etc/init.d/firewall index 873ae1c..7c63893 100644 --- a/etc/init.d/firewall +++ b/etc/init.d/firewall @@ -389,8 +389,12 @@ if [ -f "$CFGFILE" ]; then evaluate_retval ;; stop) + for i in filter nat mangle raw; do + $DEBUG $IPTABLES -t $i -F + $DEBUG $IPTABLES -t $i -X + done + for i in INPUT FORWARD OUTPUT; do - $DEBUG $IPTABLES -F $i $DEBUG $IPTABLES -P $i ACCEPT done if [ "$ACCOUNTING" == "yes" ]; then