add -w parameter to iptables for locking

fixes #232
This commit is contained in:
Thomas Bernard 2017-03-13 13:07:22 +01:00
parent 0cc906169a
commit b4ed41eae8
3 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,7 @@
#! /bin/sh
# $Id: iptables_init.sh,v 1.5 2011/05/16 12:11:37 nanard Exp $
IPTABLES="`which iptables`" || exit 1
IPTABLES="$IPTABLES -w"
IP="`which ip`" || exit 1
#change this parameters :

View File

@ -4,6 +4,7 @@
# Checks for state of filter before doing anything..
IPTABLES="`which iptables`" || exit 1
IPTABLES="$IPTABLES -w"
IP="`which ip`" || exit 1
#EXTIF=eth0

View File

@ -1,6 +1,7 @@
#! /bin/sh
# $Id: iptables_removeall.sh,v 1.5 2011/05/16 12:11:37 nanard Exp $
IPTABLES="`which iptables`" || exit 1
IPTABLES="$IPTABLES -w"
IP="`which ip`" || exit 1
#change this parameters :