Also correct the default ifconfig-pool end in docs and comments Signed-off-by: Selva Nair <selva.n...@gmail.com> --- doc/openvpn.8 | 4 ++-- src/openvpn/helper.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/doc/openvpn.8 b/doc/openvpn.8 index e61b6bb..290a441 100644 --- a/doc/openvpn.8 +++ b/doc/openvpn.8 @@ -2793,7 +2793,7 @@ expands as follows: if dev tap OR (dev tun AND topology == subnet): ifconfig 10.8.0.1 255.255.255.0 if !nopool: - ifconfig\-pool 10.8.0.2 10.8.0.254 255.255.255.0 + ifconfig\-pool 10.8.0.2 10.8.0.253 255.255.255.0 push "route\-gateway 10.8.0.1" if route\-gateway unset: route\-gateway 10.8.0.2 @@ -5594,7 +5594,7 @@ virtual DHCP server address. In .B \-\-dev tun mode, OpenVPN will cause the DHCP server to masquerade as if it were coming from the remote endpoint. The optional offset parameter is -an integer which is > \-256 and < 256 and which defaults to 0. +an integer which is > \-256 and < 256 and which defaults to -1. If offset is positive, the DHCP server will masquerade as the IP address at network address + offset. If offset is negative, the DHCP server will masquerade as the IP diff --git a/src/openvpn/helper.c b/src/openvpn/helper.c index 229523d..319c716 100644 --- a/src/openvpn/helper.c +++ b/src/openvpn/helper.c @@ -228,7 +228,7 @@ helper_client_server (struct options *o) * if tap OR (tun AND topology == subnet): * ifconfig 10.8.0.1 255.255.255.0 * if !nopool: - * ifconfig-pool 10.8.0.2 10.8.0.254 255.255.255.0 + * ifconfig-pool 10.8.0.2 10.8.0.253 255.255.255.0 * push "route-gateway 10.8.0.1" * if route-gateway unset: * route-gateway 10.8.0.2 -- 2.1.4 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel