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

  1. #/bin/bash
  2. #
  3. START_PORT=42000
  4. END_PORT=62000
  5. SRC_IP=10.8.0.10
  6. #SRC_IP=$(ifconfig | grep inet | grep -w 10.8 | awk -F' ' '{print $2}' | awk -F':' '{print $2}')
  7. NOW=$(date '+%F %T')
  8. echo "Starting port fill at $NOW"
  9. echo "Using tun src ip: $SRC_IP"
  10. echo "Filling up vpn port range from $START_PORT to $END_PORT.."
  11. sudo ./uud_send 192.168.3.2 53 $SRC_IP $START_PORT $END_PORT
  12. #sleep 1
  13. #echo "Responding to all my own client probes to make sure they're kept in the table"
  14. #sudo ./uud_send 192.168.3.2 54 192.168.2.2 $START_PORT $END_PORT 1
  15. NOW1=$(date '+%F %T')
  16. echo "Finished port fill at $NOW1"