8000 VPN · cllu/.rc Wiki · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
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.

Clone this wiki locally
0