New openvpn instance DHCP address

Started by samtzu, July 03, 2025, 09:32:36 AM

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


July 03, 2025, 10:18:33 AM #1 Last Edit: July 03, 2025, 10:23:36 AM by keeka
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?

Yes. I get the same IP from my laptop and workstation.
I can only use 1 PC at a time now.
Inconvenient.

You either need to enable the duplicate-cn option or use separate client certificates for each.