]> Cypherpunks.ru repositories - govpn.git/commitdiff
[DOC] Route traffic through GoVPN the safer way
authorZhuoyun Wei <wzyboy@wzyboy.org>
Sun, 7 Feb 2016 13:15:18 +0000 (21:15 +0800)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 7 Feb 2016 13:40:50 +0000 (16:40 +0300)
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.

doc/example.texi

index 619e9c620aa406e2c6c5fd71b3410b19bcf5dff3..5f28a7fd861050be3de3d33926bb0c544502723a 100644 (file)
@@ -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}: