OPNsense Forum

English Forums => 25.1, 25.4 Production Series => Topic started by: samtzu on July 03, 2025, 09:32:36 AM

Title: New openvpn instance DHCP address
Post by: samtzu on July 03, 2025, 09:32:36 AM
I have working OpenVPN instance but can only get 10.0.8.2/24 address out of it for the client.
Where do I configure the DHCP to allocate new address for new clients?
ovpns Interface does not allow DHCP and ISC DHCPv4 only shows WAN interface.

(https://sami.mattila.eu/storage/vpn18.png)
Title: Re: New openvpn instance DHCP address
Post by: keeka on July 03, 2025, 10:18:33 AM
I don't think there is a concept of static dhcp with openvpn tunnel network. To assign a consistent IP to each client, you can create client specific overrides for a given username.
EDIT or are you saying you cannot get more than 1 client connected simultaneously because it refuses to hand out addresses other then .2?
Title: Re: New openvpn instance DHCP address
Post by: samtzu on July 04, 2025, 03:59:11 PM
Yes. I get the same IP from my laptop and workstation.
I can only use 1 PC at a time now.
Inconvenient.
Title: Re: New openvpn instance DHCP address
Post by: viragomann on July 04, 2025, 04:33:17 PM
You either need to enable the duplicate-cn option or use separate client certificates for each.