diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2008-11-03 13:07:33 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2008-11-03 13:07:33 +0000 |
commit | 223b2c513b3470bd97f868a4acab62b1f471e495 (patch) | |
tree | 037a453a695b9ef215a349ef7a2020c76c86c845 /openvpn.8 | |
parent | c421bacf58c9f913fb9b7fe56a4494dbeb786c2e (diff) | |
download | openvpn-223b2c513b3470bd97f868a4acab62b1f471e495.tar.gz openvpn-223b2c513b3470bd97f868a4acab62b1f471e495.tar.xz openvpn-223b2c513b3470bd97f868a4acab62b1f471e495.zip |
Fixed some ifconfig-pool issues that precluded
it from being combined with --server directive.
Now, for example, we can configure thusly:
server 10.8.0.0 255.255.255.0 nopool
ifconfig-pool 10.8.0.2 10.8.0.99 255.255.255.0
to have ifconfig-pool manage only a subset
of the VPN subnet.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3471 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'openvpn.8')
-rw-r--r-- | openvpn.8 | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -2629,8 +2629,9 @@ expands as follows: push "topology [topology]" if dev tun AND (topology == net30 OR topology == p2p): - ifconfig 10.8.0.1 10.8.0.2 - ifconfig-pool 10.8.0.4 10.8.0.251 + ifconfig 10.8.0.1 10.8.0.2 + if !nopool: + ifconfig-pool 10.8.0.4 10.8.0.251 route 10.8.0.0 255.255.255.0 if client-to-client: push "route 10.8.0.0 255.255.255.0" @@ -2639,7 +2640,8 @@ expands as follows: if dev tap OR (dev tun AND topology == subnet): ifconfig 10.8.0.1 255.255.255.0 - ifconfig-pool 10.8.0.2 10.8.0.254 255.255.255.0 + if !nopool: + ifconfig-pool 10.8.0.2 10.8.0.254 255.255.255.0 push "route-gateway 10.8.0.1" .ft .LP |