[FFE] vpnc, network-manager-vpnc don't support split DNS VPN attribute

Bug #954747 reported by Evan Broder
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
network-manager-vpnc (Ubuntu)
Fix Released
Wishlist
Unassigned
vpnc (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

vpnc requests and fetches the default domain from a Cisco VPN server, but does not request the list of domains for which split DNS is configured.

With Precise's new dnsmasq-by-default configuration, this means that only DNS queries for the default domain get routed over the VPN.

Tags: patch

Related branches

Evan Broder (broder)
Changed in vpnc (Ubuntu):
assignee: nobody → Evan Broder (broder)
status: New → In Progress
summary: - vpnc does not support split DNS on Cisco VPN servers
+ vpnc, network-manager-vpnc don't support split DNS VPN attribute
Changed in network-manager-vpnc (Ubuntu):
status: New → In Progress
assignee: nobody → Evan Broder (broder)
Revision history for this message
Evan Broder (broder) wrote : Re: vpnc, network-manager-vpnc don't support split DNS VPN attribute

Here's a patch which queries the VPN server for the list of split DNS domains and passes it onto the vpnc-script. I've tested that it works with my company's VPN server, which lists several internal domain names under the split-dns attribute.

However, it's not currently possible for a NetworkManager VPN plugin to pass multiple domains back to NM, so that API will need to be enhanced somehow.

Changed in vpnc (Ubuntu):
status: In Progress → Triaged
assignee: Evan Broder (broder) → nobody
importance: Undecided → Wishlist
Changed in network-manager-vpnc (Ubuntu):
importance: Undecided → Wishlist
tags: added: patch
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Nice job, Evan. Thanks for looking into this!

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

This will need a Feature Freeze exception to be uploaded to Precise; but it would be really good to include.

summary: - vpnc, network-manager-vpnc don't support split DNS VPN attribute
+ [FFE] vpnc, network-manager-vpnc don't support split DNS VPN attribute
Revision history for this message
Martin Pitt (pitti) wrote :

This sounds more like a bug fix to me. LGTM, and this was tested already.

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

The fix for network-manager-vpnc is now in Precise; so I'll close that task: https://launchpad.net/ubuntu/+source/network-manager-vpnc/0.9.4.0-0ubuntu1

Evan, if you can please upload your vpnc patch ;)

Changed in network-manager-vpnc (Ubuntu):
status: In Progress → Fix Released
assignee: Evan Broder (broder) → nobody
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package vpnc - 0.5.3r512-2ubuntu1

---------------
vpnc (0.5.3r512-2ubuntu1) precise; urgency=low

  * Added fetch-split-dns-prop.patch to fetch split DNS property from
    Cisco VPN servers. (LP: #954747)
 -- Evan Broder <email address hidden> Tue, 13 Mar 2012 23:26:42 -0700

Changed in vpnc (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Reuben Firmin (reubenf) wrote :

See https://bugs.launchpad.net/ubuntu/+source/vpnc/+bug/992543 - this patch appears to break dpkg-buildpackage.

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

There were changes in the packages that break the process you are using, yes, but it has nothing to do with that patch specifically; see Stefano's responses in the linked bug for details.

Revision history for this message
spidernik84 (alexander-rilik) wrote :

Hi,

I'm still having some issues with the split-dns feature on 12.04 despite having updated the packages to the latest versions.
I'm providing the configurations I'm using, I might well be the one who did something wrong, I apologize in that case :) I'm changing the ips and domains with fake stuff.

This is the cisco asa 5510 configuration:

group-policy DfltGrpPolicy attributes
dns-server value <internal-dns1> <internal-dns2>
default-domain value <cooldomain1.com>
split-dns value <cooldomain1.com> <cooldomain2.com>

Here's the content of /run/nm-dns-dnsmasq.conf when the tunnel is up:

server=/<cooldomain1.com>/<internal-dns1>
server=/10.in-addr.arpa/<internal-dns1>
server=/16.172.in-addr.arpa/<internal-dns1>
server=8.8.8.8

It looks like the nm-dns-dnsmasq.conf is missing a line for the other domain, like:
server=/<cooldomain2.com>/<internal-dns1>

These are the installed packages:
network-manager 0.9.4.0-0ubuntu4.1
network-manager-gnome 0.9.4.1-0ubuntu2
network-manager-openconnect 0.9.4.0-0ubuntu1
network-manager-openconnect-gnome 0.9.4.0-0ubuntu1
network-manager-vpnc 0.9.4.0-0ubuntu1
network-manager-vpnc-gnome 0.9.4.0-0ubuntu1
dnsmasq-base 2.59-4

Any clue? Thanks

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

As far as I know this should work. A very similar configuration on my Cisco 881 (admittedly, it's not an ASA) works just fine like this and properly adds the extra domain. Is vpnc also at the right version, which should be 0.5.3r512-2ubuntu1?

If it is, I'd like to suggest you file a separate bug for your issue, and make sure to notify me with the bug number here or by email -- then we'll debug the network-manager-vpnc plugin directly to figure out what is going wrong.

Revision history for this message
spidernik84 (alexander-rilik) wrote :

Thanks Mathieu. Here it is #1034298.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.