From: Zhuoyun Wei Date: Sun, 7 Feb 2016 13:15:18 +0000 (+0800) Subject: [DOC] Route traffic through GoVPN the safer way X-Git-Tag: 5.6^2~6 X-Git-Url: http://www.git.cypherpunks.ru/?p=govpn.git;a=commitdiff_plain;h=f375411438d8bad51fc4f58790eea9c62a70bdc1 [DOC] Route traffic through GoVPN the safer way Adding routes for 0/1 and 128/1 instead of 0/0 has the same effect of routing all traffic through VPN tunnel, without the risk of wiping / messing up with the original gateway. --- diff --git a/doc/example.texi b/doc/example.texi index 619e9c6..5f28a7f 100644 --- a/doc/example.texi +++ b/doc/example.texi @@ -64,7 +64,8 @@ client% ip addr add 192.168.0.2/24 dev wlan0 client% ip tuntap add dev tap10 mode tap client% ip addr add 172.16.0.2/24 dev tap10 client% ip link set up dev tap10 -client% ip route add default via 172.16.0.1 +client% ip route add 0/1 via 172.16.0.1 +client% ip route add 128/1 via 172.16.0.1 @end verbatim @strong{Run client daemon itself}: