Hello,
I have configured openvpn server to give IP to clients in a specific range. My virtual network is /24 and the pool size is 59.
ifconfig 10.0.0.1 10.0.0.2
ifconfig-pool 10.0.0.13 10.0.0.254
But this is not enough recently and i want to increase the pool size. But can't just use netmask parameter with ifconfig-pool, because i am using in tun type.
The question is how can i increase the pool size ? I set the virtual netwrok /16 but can't increase the pool size. I want to arrange pool range myself because some users have static IPs.
All the configuration is,
ca /etc/ca/ca.crt
cert /usr/local/etc/openvpn/keys/server.crt
key /usr/local/etc/openvpn/keys/server.key
dh /usr/local/etc/openvpn/keys/dh.pem
cipher AES-128-CBC
client-cert-not-required
duplicate-cn
verb 3
script-security 3
keepalive 10 60
user nobody
group nogroup
persist-tun
dev-type tun
username-as-common-name
###############
management localhost 7503
proto udp
port 1194
auth-user-pass-verify "/usr/local/etc/openvpn/auth.sh 3" via-env
dev vpn3
mode server
tls-server
ifconfig 10.0.0.1 10.0.0.2
ifconfig-pool 10.0.0.6 10.0.0.254
route 10.0.0.0 255.255.0.0
client-config-dir /usr/local/etc/openvpn/ccd3
comp-lzo no
push "comp-lzo no"
push "route 192.168.13.0 255.255.255.0"
local 172.16.56.77
Server log,
- Jun 22 16:47:41 2016 openvpn[64674]: TUN/TAP device vpn3 exists previously, keep at program end
Jun 22 16:47:41 2016 openvpn[64674]: TUN/TAP device /dev/vpn3 opened
Jun 22 16:47:41 2016 openvpn[64674]: do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Jun 22 16:47:41 2016 openvpn[64674]: /sbin/ifconfig vpn3 10.0.0.1 10.0.0.2 mtu 1500 netmask 255.255.255.255 up
Jun 22 16:47:41 2016 openvpn[64674]: /sbin/route add -net 10.0.0.0 10.0.0.2 255.255.0.0
Jun 22 16:47:41 2016 openvpn[64677]: GID set to nogroup
Jun 22 16:47:41 2016 openvpn[64677]: UID set to nobody
Jun 22 16:47:41 2016 openvpn[64677]: UDPv4 link local (bound): [AF_INET]172.16.56.77:1194
Jun 22 16:47:41 2016 openvpn[64677]: UDPv4 link remote: [undef]
Jun 22 16:47:41 2016 openvpn[64677]: MULTI: multi_init called, r=256 v=256
Jun 22 16:47:41 2016 openvpn[64677]: IFCONFIG POOL: base=10.0.0.13 size=59, ipv6=0