VPN: Adress Reservation fails

IP assignments defined during the creation of a new VPN profile are not executed.
Example:

  • IP-Reservation. 192.168.4.9
  • the actually used IP address is still dynamically assigned: 192.168.4.30

Sorry but I can’t reproduce.

I’ve selected the IP address 11.11.11.22 and the server respected it:

Wed Jun  3 16:16:27 2020 /sbin/ip addr add dev tun0 11.11.11.22/24 broadcast 11.11.11.255

Also, please note that:

Note that the entries in this file are treated by OpenVPN as suggestions only, based on past associations between a common name and IP address. They do not guarantee that the given common name will always receive the given IP address. If you want guaranteed assignment, use –ifconfig-push

See --ifconfig-pool-persist at https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage

1 Like