Update updateproxy.sh
Hopefully this fixes ip leakage problem.
This commit is contained in:
parent
fca9a29e95
commit
f7e8caffc1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue