OPNsense Forum

English Forums => Virtual private networks => Topic started by: bbm1995 on September 06, 2021, 08:18:16 PM

Title: Possible to set static IP for OpenVPN Clients?
Post by: bbm1995 on September 06, 2021, 08:18:16 PM
Hello!

I'm wondering if it's possible to configure static leases/DHCP for clients connected over VPN?

Do I have to add "ovpns1" on the interface menu and continue from there or are there other things I should consider doing beforehand?

The reason for this is that I'm building RDP connections to devices outside my location and keeping a static IP would help keep local connection configuration files correct.

(https://i.imgur.com/j6wpqrw.png)

(https://i.imgur.com/3frwzbD.png)

Thanks for your answer!
Title: Re: Possible to set static IP for OpenVPN Clients?
Post by: sorano on September 07, 2021, 10:00:02 AM
I've not done it for ages, but if I remember correctly you must use client specific overrides along with the ifconfig-push advanced option.

See:
https://openvpn.net/community-resources/configuring-client-specific-rules-and-access-policies/