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.

15 lines
312 B

  1. #/bin/bash
  2. #!
  3. echo "Connecting to local vpn server.."
  4. sleep 0.1
  5. sudo openvpn --client --config client* &
  6. sleep 8 # might need to sleep longer to make sure tun0 exists
  7. echo "Adding ip route rule to force traffic destined for web+dns servers to use vpn tun interface"
  8. sudo ip route add 192.168.3.2 dev tun0