Update updateproxy.sh

Hopefully this fixes ip leakage problem.
This commit is contained in:
MatijaS 2016-08-03 23:29:18 +02:00 committed by GitHub
parent fca9a29e95
commit f7e8caffc1
1 changed files with 5 additions and 1 deletions

View File

@ -8,12 +8,16 @@ DELAY=$2
#Check if arg was received
if [ -z "$2" ]; then
echo "USAGE: ./updateproxy.sh <number-of-repetitions> <delay-between-repetitions>"
echo "USAGE: sudo ./updateproxy.sh <number-of-repetitions> <delay-between-repetitions>"
exit
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
python $FILE -l
iptables -P OUTPUT ACCEPT
sleep $DELAY
let COUNTER=COUNTER+1
done