adding -w option to iptables
Script now waits for exclusive xtables lock instead of crashing when it's unable to get it.
This commit is contained in:
parent
f7e8caffc1
commit
1588c4c922
1 changed files with 2 additions and 2 deletions
|
@ -15,9 +15,9 @@ fi
|
||||||
#iptables dropping packets makes sure your real ip isn't leaked if webpage
|
#iptables dropping packets makes sure your real ip isn't leaked if webpage
|
||||||
#is being fetched during the proxy reload.
|
#is being fetched during the proxy reload.
|
||||||
while [ $COUNTER -lt $MAX ]; do
|
while [ $COUNTER -lt $MAX ]; do
|
||||||
iptables -P OUTPUT DROP
|
iptables -w -P OUTPUT DROP
|
||||||
python $FILE -l
|
python $FILE -l
|
||||||
iptables -P OUTPUT ACCEPT
|
iptables -w -P OUTPUT ACCEPT
|
||||||
sleep $DELAY
|
sleep $DELAY
|
||||||
let COUNTER=COUNTER+1
|
let COUNTER=COUNTER+1
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Reference in a new issue