Hi,
my OVPN server is configured to be a gateway to the Internet. I have a directive in server's config:
push "redirect-gateway def1"
I also have:
push "dhcp-option DNS 10.10.8.1"
and:
client-to-client
However, for one client I do not want to use server as a gateway to the internet. So in client's config I add:
route-nopull
This works just fine, which means:
1. if I go to the Internet with client, I can see client's real IP address, not server's one
2. I can ping other machines on a VPN
But the client does not use server's DNS.
if I try to ping machines in a VPN like: "ping client2.vpn", it does not work. But it works, if I ommit "route-nopull" directive from client's config.
So my question is: how to get rid of default gateway, but not pushed DNS servers?