Wrong dnsmasq configuration when VPN is set as default gateway
Bug #898224 reported by
Stéphane Graber
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager (Ubuntu) |
Fix Released
|
High
|
Mathieu Trudel-Lapierre |
Bug Description
When using dnsmasq with Network Manager (DNS=dnsmasq in the config) and a VPN that's not configured as "Use VPN only for resources on its network" (default configuration), the dnsmasq configuration ends up being wrong.
I'd have expected the default DNS server to be the one received from the VPN connection instead of the one from the current wired/wireless network as that one isn't reachable.
So in a setup where VPN doesn't provide the default gateway, DNS should be:
- DNS queries for anything on the VPN network => DNS server from VPN
- Everything elsse => DNS server from current wired/wireless network
In a setup where the default gateway is the VPN
- Everything => DNS server from VPN
Related branches
Changed in network-manager (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in network-manager (Ubuntu): | |
assignee: | nobody → Mathieu Trudel-Lapierre (mathieu-tl) |
Changed in network-manager (Ubuntu): | |
status: | Triaged → In Progress |
To post a comment you must log in.
This bug was fixed in the package network-manager - 0.9.2.0+ git201201101813 .0b30200- 0ubuntu1
--------------- 0+git2012011018 13.0b30200- 0ubuntu1) precise; urgency=low
network-manager (0.9.2.
* New upstream snapshot. libnm-util2. symbols: add new symbols: vpn_get_ num_data_ items@Base vpn_get_ num_secrets@ Base patches/ dnsmasq- vpn-dns- filtering. patch: filter nameservers before NetworkManager. conf: enable the use of DNSMasq as a resolver by p-dns-resolving ' blueprint.
* debian/
- nm_setting_
- nm_setting_
* debian/
adding to dnsmasq to avoid using DNS servers which are unavailable due to
a VPN taking the default route, or to be considered insecure when a VPN
is connected. (LP: #898224)
* debian/
default, NetworkManager will configure it based on DHCP responses and
interface settings. See the 'foundations-
* debian/control: move dnsmasq-base from a Recommends to a Depends.
-- Mathieu Trudel-Lapierre <email address hidden> Thu, 12 Jan 2012 11:01:32 +0100