Hello guys,
I got a system which consist of one OpenVPN server and a probably a mass of OpenVPN clients. Whenever one client connects to the server, server assigns it ip address after skipping three numbers.
OpenVPN server has: 10.8.0.1
OpenVPN client 1: 10.8.0.4
OpenVPN client 2: 10.8.0.8
OpenVPN client 3: 10.8.0.12
Probably that is some feature of OVPN server I havent discovered yet, could someone please explain me? In the time, as the mass of clients will be rising, they could easily take all the possible ip addresses in the pool.
My server config:
dev tun
proto tcp
port 1194
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/1_Praha_Server.crt
key /etc/openvpn/easy-rsa/keys/1_Praha_Server.key
dh /etc/openvpn/easy-rsa/keys/dh2048.pem
server 10.8.0.0 255.255.0.0
ifconfig 10.8.0.1 10.8.0.2
push "route 10.8.0.1 255.255.255.255"
push "route 10.8.0.0 255.255.255.0"
push "route 10.12.6.0 255.255.255.0"
push "dhcp-option DNS 8.8.8.8"
tls-auth /etc/openvpn/easy-rsa/keys/ta.key 0
client-to-client
keepalive 10 120
cipher AES-128-CBC
comp-lzo
ifconfig-pool-persist /etc/openvpn/ipp.txt
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn-status.log 20
log /var/log/openvpn.log
verb 3
max-clients 65535
management localhost 7505
Client config:
client
dev tun
proto tcp
remote *.*.*.* 1194
resolv-retry infinite
nobind
persist-key
persist-tun
mute-replay-warnings
ns-cert-type server
key-direction 1
cipher AES-128-CBC
comp-lzo
verb 3
mute 20
Any help appreciated.