]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Correctly state the default dhcp server address in man page
authorSelva Nair <selva.nair@gmail.com>
Fri, 2 Dec 2016 19:42:09 +0000 (14:42 -0500)
committerGert Doering <gert@greenie.muc.de>
Tue, 6 Dec 2016 20:34:06 +0000 (21:34 +0100)
Also correct the default ifconfig-pool end in docs and comments

Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1480707729-19578-1-git-send-email-selva.nair@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg13387.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
doc/openvpn.8
src/openvpn/helper.c

index e61b6bbcd73483b4a5d11c4525ff4e811b03585e..290a441ad0d50b7f75a5e81b486386e6313009f1 100644 (file)
@@ -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
index 229523dbd1e68f2bb32a77d0fc305903fbbdb605..319c71634f4cd62f2265cbeb9d347f88e36ee506 100644 (file)
@@ -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