Assigning tunnels, hostnames, and IPs to clients in OpenVPN
-
When assigning users to the OpenVPN, I'm using a tunnel network of 192.168.60.0/24. All my other traffic subnets are .20, .30, .40, and .50. Do I have to use a separate subnet? It's just me or my family, not a business environment. Can I just assign the tunnel network as the .40? If I have to use .60, should I create an interface and enable DHCP over it so I can see it in my status list?
If I use .40 as tunnel, and if I already have a static IP for my phone on that network, can I assign the same IP, or can the same MAC address device even be on that network?
Lastly, how do I assign a hostname to the device that logs into OpenVPN? There's no interface for .60, and none of the IP's show up in the DHCP list. I can't find any client overrides to assign a hostname. It makes it easier when searching through Pihole query log.
-
After playing around, I can assign the .40 tunnel, but can't assign the same IP that I normally reserve for my phone on that subnet or I get no internet service. I get randomly assigned IP of .40.2. That IP has no hostname in the Pihole query list and does not show up in the DHCP status so I can assign a static IP and give it a hostname.
I'm at a loss how to assign a hostname. I know it's trivial, but if I was running it with several hundred VPN users, I would think there's a way to assign hostnames when they log on. I've googled and searched, and I can't find how.
Thanks for any help.