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:
Matija Sirk 2016-08-04 00:07:35 +02:00 committed by GitHub
parent f7e8caffc1
commit 1588c4c922

View file

@ -15,9 +15,9 @@ fi
#iptables dropping packets makes sure your real ip isn't leaked if webpage
#is being fetched during the proxy reload.
while [ $COUNTER -lt $MAX ]; do
iptables -P OUTPUT DROP
iptables -w -P OUTPUT DROP
python $FILE -l
iptables -P OUTPUT ACCEPT
iptables -w -P OUTPUT ACCEPT
sleep $DELAY
let COUNTER=COUNTER+1
done