Networkmanager VPN DNS leak on 16.04
Hi,
After connecting the VPN
# killall -USR1 dnsmasq
# tail syslog.log
...
Jul 13 02:18:56 tp dnsmasq[1476]: time 1499905136
Jul 13 02:18:56 tp dnsmasq[1476]: cache size 0, 0/0 cache insertions re-used unexpired cache entries.
Jul 13 02:18:56 tp dnsmasq[1476]: queries forwarded 154, queries answered locally 1
Jul 13 02:18:56 tp dnsmasq[1476]: queries for authoritative zones 0
Jul 13 02:18:56 tp dnsmasq[1476]: server 198.18.0.1#53: queries sent 0, retried or failed 0
Jul 13 02:18:56 tp dnsmasq[1476]: server 198.18.0.2#53: queries sent 0, retried or failed 0
Jul 13 02:18:56 tp dnsmasq[1476]: server 192.168.0.254#53: queries sent 12, retried or failed 0
The first two name server are provided by the vpn connection.
The last 192.168.0.254 name server is running on my local router and forward request to my ISP (this is the default name server when VPN is not activated).
When I query the DNS, queries are sent to each name server which makes a DNS information leaking to my ISP
I validated that by the mean of tcpdump on eth and tun interfaces and also by using that site: https:/
it is not clear to me if dnsmasq is keeping the local network dns information and then add the vpn name servers or if dnsmasq is receiving the name server information from both the local and vpn dhcp source.
I tried to force the DNS server IPs in the VPN configuration (edit Vpn connection -> ipv4 - > Automatic Adresses only ..) but the result is the same.
I would like to have the local DNS removed when the VPN is connected and restored when VPN is disconnected.
How can it be solved?
Is it a bug?
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Emmanuel Dupont for more information if necessary.