Added L2TP route.

This commit is contained in:
yohan 2019-11-03 16:34:01 +01:00
parent 89578bfaaf
commit 451bc1028a

View File

@ -29,6 +29,8 @@ trap "shut_down" SIGINT SIGTERM SIGKILL
start_openvpn start_openvpn
sleep 3 sleep 3
iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE
# L2TP route
ip route add 192.168.2.0/24 via 172.31.1.3 dev eth0
#ip route add 192.168.1.0/24 via 192.168.2.1 dev eth0 #ip route add 192.168.1.0/24 via 192.168.2.1 dev eth0
#bash #bash