DHCP reservation for OpenVPN clients?
-
I have a Netgate SG-5100 with OpenVPN set up for some clients that are using cellular connections. Is there a way to set DHCP reservations for these devices on the OpenVPN side as well as LAN? They're remote sensing devices we ssh into, but that vpn addresses aren't consistently assign makes it a lot harder to know what IP belongs to what device.
LAN: 192.168.10.0/24
OpenVPN: 172.16.0.0/24 -
@tranzmatt
OpenVPN handles its own VPN clients.
The DHCP server won't help you here.Read, I guess, this.
-
@gertjan
It should be fairly easy to do without digging into the cli stuff.
IIRC, you can create client specific override in the gui using the login name. Under the cso, change the tunnel network to the IP you want the client to have. (e.g. 172.16.0.99/24) -
Use topology subnet.
One can set static tunnel IP in Client Specific Overrides.
Common Name of the client cert must match username.Fill in the user static tunnel IP in IPv4 Tunnel Network,
f.e.:
172.16.0.2/24 gives username1 a static tunnel IP .2
172.16.0.3/24 gives that username1 a static tunnel IP .3172.16.0.1 is for the server and cannot be used.
.0 .254 .255 cannot be used either.