Added L2TP route.
This commit is contained in:
parent
89578bfaaf
commit
451bc1028a
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user