From f375411438d8bad51fc4f58790eea9c62a70bdc1 Mon Sep 17 00:00:00 2001 From: Zhuoyun Wei Date: Sun, 7 Feb 2016 21:15:18 +0800 Subject: [PATCH] [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. --- doc/example.texi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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}: -- 2.44.0