projects
/
wiki
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9512178
)
Remove confusing text at end of redirect-gateway example.
author
Guus Sliepen
<guus@tinc-vpn.org>
Tue, 21 Jun 2011 21:12:17 +0000
(23:12 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Tue, 21 Jun 2011 21:12:17 +0000
(23:12 +0200)
examples/redirect-gateway.mdwn
patch
|
blob
|
history
diff --git
a/examples/redirect-gateway.mdwn
b/examples/redirect-gateway.mdwn
index
61b4888
..
7fb1691
100644
(file)
--- 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.
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
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
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.