-
Notifications
You must be signed in to change notification settings - Fork 3
Chunliang Lyu edited this page Aug 5, 2016
·
1 revision
By default, only the traffic sent to the VPN network range are going through the VPN. If you would like to route additional trafic, add the connection hook /etc/ppp/ip-up
with the following content:
#!/bin/sh echo "ppp" echo $5 if [ "${5:-}" = "10.10.8.1" ] then /sbin/route add XX.XX.XX.XX/32 $5 fi
Here 10.10.8.1
is the remove gateway. Remember to add execution permission to the file sudo chmod 755 /etc/ppp/ip-up
.