I am trying to configure my OpenVPN host as a DNS. But, with my current setup, the clients don't seem to be able to access the server through OpenVPN, though they have no trouble accessing each other.
My server configuration:
Code: Select all
proto tcp
dev tap
server 192.168.254.0 255.255.255.0
client-to-client
persist-key
persist-tun
With this configuration, the clients cannot ping the OpenVPN server at either 192.168.254.1 or 192.168.254.0, and neither can they access any other sort of service on the OpenVPN server.
So, I read somewhere to add a couple of directives to push to the clients:
Code: Select all
push "dhcp-option DNS 192.168.254.1"
push "route 192.168.254.0 255.255.255.0"
But, this still doesn't give the server addressability for the clients. I can see that my clients now have 192.168.254.1 as a DNS, but I still cannot access that address. Also, I see that my clients have 192.168.254.0 for their DHCP Server address, which does not seem valid, either.
How do I configure OpenVPN as a server so that the clients can access the server through the VPN (at address 192.168.254.1 in this example)?