PDA

View Full Version : [ubuntu] OpenVPN push DNS



Matthai
December 5th, 2008, 09:51 PM
I have VPN server on Intrepid (desktop machine) and in config file I have

push "dhcp-option DNS 10.8.8.1"


On a client machine (Intrepid also) I am using Network Manager to connect to VPN server. I am connected via WLAN (localIP of the access point is 172.16.0.1). Works fine, but if I say cat /etc/resolv.conf, I got this:


# Generated by NetworkManager
domain wlan
search wlan
nameserver 10.8.8.1
nameserver 172.16.0.1

If I disconnect, "nameserver 10.8.8.1" line disappears, which is correct, but the problem is that I still have 172.16.0.1 as nameserver.

Whn I try to do tcpdum on a client machine and filter all traffic going to VPN (tcpdump -i ra0 not host VPN_server_IP), I can see DNS leaking.

How to prevent this?

Xi0N
July 13th, 2010, 06:26 PM
wrong post - message deleted