After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 765235 - DNS leaks due to misconfigured /etc/resolv.conf
DNS leaks due to misconfigured /etc/resolv.conf
Status: RESOLVED DUPLICATE of bug 758772
Product: NetworkManager
Classification: Platform
Component: VPN: openvpn
1.0.x
Other Linux
: Normal major
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2016-04-18 21:30 UTC by cryzed
Modified: 2016-04-19 16:09 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description cryzed 2016-04-18 21:30:50 UTC
When using NetworkManager with the OpenVPN plugin and connecting to a VPN that pushes DNS addresses, those addresses are _appended_ to the resolv.conf instead of replacing existing ones. The current behaviour can and will cause DNS leaks to occur, as soon as the DNS servers pushed by the VPN are not reachable (or even before that) and resolver cycles to the local nameserver (http://man7.org/linux/man-pages/man5/resolv.conf.5.html) given by the ISP. I have even observed that the local nameserver is on the first line, causing DNS leaks to occur outright.

The default behavior should be to prevent DNS leaks and only to use the DNS nameservers explicitly pushed by the VPN. I think in my case the NetworkManager collects the configured nameservers in the order that the connections were established -- i.e. first the nameserver of my ethernet (local) and then the nameservers pushed by the VPN and then writes them to /etc/resolv.conf

Current workarounds include manually specifying the set of DNS servers provided by the VPN for the ethernet connection and the VPN, or simply not using NetworkManager, instead relying on openvpn + update-resolv-conf directly (which works).
Comment 1 cryzed 2016-04-18 21:33:14 UTC
To elaborate a bit: I am running Arch Linux, and the installed NetworkManager version is: extra/networkmanager 1.0.12-1. I am using the KDE Plasma desktop and the extra/nm-connection-editor 1.0.10-1 to additionally configure the VPNs.
Comment 2 Thomas Haller 2016-04-19 08:47:17 UTC
Isn't his a duplicate of bug 758772?
Comment 3 cryzed 2016-04-19 15:19:28 UTC
Seems like it, I had assumed this to be completely unknown, since it is imho a critical security issue.
Comment 4 Thomas Haller 2016-04-19 16:09:11 UTC

*** This bug has been marked as a duplicate of bug 758772 ***