Update updateproxy.sh
Hopefully this fixes ip leakage problem.
This commit is contained in:
parent
fca9a29e95
commit
f7e8caffc1
1 changed files with 5 additions and 1 deletions
|
@ -8,12 +8,16 @@ DELAY=$2
|
||||||
|
|
||||||
#Check if arg was received
|
#Check if arg was received
|
||||||
if [ -z "$2" ]; then
|
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
|
exit
|
||||||
fi
|
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
|
while [ $COUNTER -lt $MAX ]; do
|
||||||
|
iptables -P OUTPUT DROP
|
||||||
python $FILE -l
|
python $FILE -l
|
||||||
|
iptables -P OUTPUT ACCEPT
|
||||||
sleep $DELAY
|
sleep $DELAY
|
||||||
let COUNTER=COUNTER+1
|
let COUNTER=COUNTER+1
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue