Hello,
I'm setting up a server that should provide external access to the local network. The network has a DHCP server combined with a DNS server that can properly resolve the DHCP hostnames to their dynamic IP address. This is an important feature because it makes computers on the network discoverable. OpenVPN cannot provide this so I want to use the existing DHCP server.
I've read the page
https://community.openvpn.net/openvpn/wiki/323-i-want-to-set-up-an-ethernet-bridge-on-the-1921681024-subnet-existing-dhcp and searched this forum but it doesn't provide proper search results.
The FAQ says I need to configure my DHCP to not pass out a gateway to VPN clients. But it doesn't say how the DHCP can actually distinguish VPN clients from local clients. I'm using Dual DHCP DNS Server (
https://sourceforge.net/projects/dhcp-dns-server/). Can anybody please explain how the server should be configured to distinguish between VPN and local clients?
Another idea to make things easier would be implementing a DHCP proxy into OpenVPN. That proxy could request an IP address and other data from the server's default DHCP service but filter out the gateway option from the response packets when passing it through to the VPN client.