From: Guus Sliepen Date: Tue, 21 Jun 2011 21:12:17 +0000 (+0200) Subject: Remove confusing text at end of redirect-gateway example. X-Git-Url: https://www.tinc-vpn.org/git/browse?p=wiki;a=commitdiff_plain;h=9dac714840027e4b504b976e3cb439be48d7f0a5 Remove confusing text at end of redirect-gateway example. --- diff --git a/examples/redirect-gateway.mdwn b/examples/redirect-gateway.mdwn index 61b4888..7fb1691 100644 --- a/examples/redirect-gateway.mdwn +++ b/examples/redirect-gateway.mdwn @@ -114,8 +114,10 @@ running on the clients from the rest of the Internet. The examples given above will work with both router and switch mode. However, in router mode, there is actually no such thing as a gateway route. -For example, the following three lines in the tinc-up script: +In that mode, the following four lines in the tinc-up script: + VPN_GATEWAY=... + ip route add $VPN_GATEWAY dev $INTERFACE ip route add 0.0.0.0/1 via $VPN_GATEWAY dev $INTERFACE ip route add 128.0.0.0/1 via $VPN_GATEWAY dev $INTERFACE @@ -124,8 +126,3 @@ Can be replaced with the following two lines without any problem: ip route add 0.0.0.0/1 dev $INTERFACE ip route add 128.0.0.0/1 dev $INTERFACE - -In fact, one does not have to set the VPN_GATEWAY variable at all. -In switch mode, the gateway routes are necessary. -However, since Subnet statements are ignored in switch mode, -you do not have to add `Subnet = 0.0.0.0/0` to `/etc/tinc/myvpn/hosts/server` in that case.