How to assign a fixed IP to OpenVPN client

I need to have a VPN user have a static IP assigned every time they connect.
Everything I am looking up is saying to use: ifconfig-push [static IP] [subnet mask]

My process is:

  1. Create a new client specific override
  2. Choose my VPN server
  3. Enter my user’s common name
  4. add static IP config in the advanced box. In my case it’s ifconfig-push 10.8.0.20 255.255.255.0

However, whenever I do this I can no longer establish a connection to the VPN server. Is there something else I need to configure in order for this to work?

You set static IPs under the client specific overrides.

I would set following directive in the advanced options of the server:

ifconfig-pool-persist /conf/ovpn-user-ipp.txt

This way, all clients connecting to the openvpn server are getting a permanent ip assigned. Works fine here.

ifconfig-pool-persist /conf/ovpn-user-ipp.txt

that’s useful since they now removed the advanced fields from the client override for security reasons :confused:

at least for now your way works, but i wonder how you handle firewall failover?