You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
603 B
26 lines
603 B
#/bin/bash
|
|
#
|
|
|
|
|
|
START_PORT=42000
|
|
END_PORT=62000
|
|
|
|
|
|
SRC_IP=10.8.0.10
|
|
#SRC_IP=$(ifconfig | grep inet | grep -w 10.8 | awk -F' ' '{print $2}' | awk -F':' '{print $2}')
|
|
NOW=$(date '+%F %T')
|
|
echo "Starting port fill at $NOW"
|
|
|
|
echo "Using tun src ip: $SRC_IP"
|
|
echo "Filling up vpn port range from $START_PORT to $END_PORT.."
|
|
|
|
sudo ./uud_send 192.168.3.2 53 $SRC_IP $START_PORT $END_PORT
|
|
|
|
#sleep 1
|
|
|
|
#echo "Responding to all my own client probes to make sure they're kept in the table"
|
|
|
|
#sudo ./uud_send 192.168.3.2 54 192.168.2.2 $START_PORT $END_PORT 1
|
|
|
|
NOW1=$(date '+%F %T')
|
|
echo "Finished port fill at $NOW1"
|