Pārlūkot izejas kodu

Added local routing

Gogs 4 gadi atpakaļ
vecāks
revīzija
4d7539f30b
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      openvpn_init.sh

+ 2 - 0
openvpn_init.sh

@@ -10,6 +10,8 @@ echo DELETING DEFAULT GW
 ip route del default
 echo SETTING $VPN_IP as the only ip to get routed through $VPN_GW 
 ip route add $VPN_IP via $VPN_GW
+echo Adding 192.168.0.0/16 to the route
+ip route add 192.168.0.0/16 VIA $VPN_GW
 echo "nameserver 8.8.8.8" > /etc/resolv.conf
 echo Starting openvpn
 ip route