diff options
author | Arne Schwabe <arne@rfc2549.org> | 2014-07-13 14:28:47 +0200 |
---|---|---|
committer | Gert Doering <gert@greenie.muc.de> | 2014-07-13 15:55:33 +0200 |
commit | 3a3da8ddd3f395f9b2bc64f84cb549d99e7c6dbd (patch) | |
tree | 818b84c2cbaf81c891c03c3934fe92adef5b450b /doc | |
parent | 132b67f7f75ecd9ae653b4d37db9c60579971875 (diff) | |
download | openvpn-3a3da8ddd3f395f9b2bc64f84cb549d99e7c6dbd.tar.gz openvpn-3a3da8ddd3f395f9b2bc64f84cb549d99e7c6dbd.tar.xz openvpn-3a3da8ddd3f395f9b2bc64f84cb549d99e7c6dbd.zip |
Fix server routes not working in topology subnet with --server [v3]
The IPv4 routing code needs an IPv4 address to point a route to, and
in --topology subnet mode, the *server* did not have one set by default.
So we now just default --route-gateway to the next address right after
the server address - the specific address doesn't matter, as the correct
next-hop will not be resolved by the host OS but by the OpenVPN daemon.
All that is needed is "it's in the subnet routed to the tun interface".
Using the server address itself would work on unix, but doesn't work with
the Windows TAP driver (as it does not spoof ARP responses for itself).
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1405254527-23833-1-git-send-email-gert@greenie.muc.de>
URL: http://article.gmane.org/gmane.network.openvpn.devel/8904
(cherry picked from commit 4cc6a2595947a0e2f13b37637899bfc50f8509aa)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/openvpn.8 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/openvpn.8 b/doc/openvpn.8 index 64247a4..39b128f 100644 --- a/doc/openvpn.8 +++ b/doc/openvpn.8 @@ -2660,7 +2660,7 @@ on sufficiently fast hardware. SSL/TLS authentication must be used in this mode. .\"********************************************************* .TP -.B \-\-server network netmask +.B \-\-server network netmask ['nopool'] A helper directive designed to simplify the configuration of OpenVPN's server mode. This directive will set up an OpenVPN server which will allocate addresses to clients @@ -2695,6 +2695,9 @@ expands as follows: if !nopool: ifconfig-pool 10.8.0.2 10.8.0.254 255.255.255.0 push "route-gateway 10.8.0.1" + if route-gateway unset: + route-gateway 10.8.0.2 + .in -4 .ft .fi |