How to specify DHCP Range in Config File CentOS
Posted: Mon Jun 10, 2013 2:24 pm
What is the proper way to specify the DHCP Range to clients? Server configuration file (openvpn.conf)
Community Support Forum
https://forums.openvpn.net/
--server network netmask
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 out of the given network/netmask. The server itself will take the ".1" address of the given network for use as the server-side end‐
point of the local TUN/TAP interface.
For example, --server 10.8.0.0 255.255.255.0 expands as follows:
statement withdev tun
server 10.8.0.0 255.255.255.0
Code: Select all
mode server
tls-server
ifconfig 10.8.0.1 10.8.0.2
ifconfig-pool 10.8.0.4 10.8.0.251
route 10.8.0.0 255.255.255.0
push "route 10.8.0.0 255.255.255.0"
push "route 10.8.0.1"