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

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