Possible to set static IP for OpenVPN Clients?

Started by bbm1995, September 06, 2021, 08:18:16 PM

Previous topic - Next topic
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.





Thanks for your answer!

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/
2x 23.7 VMs & CARP, 4x 2.1GHz, 8GB
Cisco L3 switch, ESXi, VDS, vmxnet3
DoT, Chrony, HAProxy + NAXSI, Suricata
VPN: IPSec, OpenVPN, Wireguard
MultiWAN: Fiber 500/500Mbit dual stack + 4G failover

--
Available for private support.
Did my answer help you? Feel free to click [applaud] to the left