Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Virtual private networks
»
Possible to set static IP for OpenVPN Clients?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Possible to set static IP for OpenVPN Clients? (Read 1514 times)
bbm1995
Newbie
Posts: 4
Karma: 0
Possible to set static IP for OpenVPN Clients?
«
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.
Thanks for your answer!
Logged
sorano
Full Member
Posts: 153
Karma: 21
Re: Possible to set static IP for OpenVPN Clients?
«
Reply #1 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/
Logged
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
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Virtual private networks
»
Possible to set static IP for OpenVPN Clients?