[Bug 377546] [NEW] network-manager-openvpn should be able to replace resolv.conf instead of adding to previous values

two-times-pi pablocosta at mail.com
Sun May 17 10:27:17 UTC 2009


Public bug reported:

Binary package hint: network-manager-openvpn

On the server:
* OpenVPN server that pushes default route, nameserver and search options

On the client:
* I have installed network-manager, network-manager-openvpn and openvpn packages.
* I am automatically connected to a wifi network, and both my resolver and routing get configured ok,
* I have set up a VPN connection that goes up and works ok too.
* Default route is set up as expected on my client, i.e. my default route gets replaced as expected.
* Nameserver stuff pushed by the server is *combined* with the previous values in /etc/resolv.conf; Both nameserver and search entries are "prepended" to previous values, but for the nameserver entry this is irrelevant.

I need the previous values to be *replaced* by new values pushed from
the openvpn server. I need all traffic to be routed via the tunnel, and
all DNS queries to be sent to the DNS server on the other side of the
tunnel too. That server does publish some private domains that are
unavailable on the internet.

Example:

wifi connection sets 'search wifi.com' and 'nameserver 11.11.11.11' in /etc/resolv.conf
vpn server pushes 'search vpn.com' and 'nameserver 33.33.33.33'

Initial /etc/resolv.conf when connected to wifi network:
  # Generated by NetworkManager
  search wifi.com
  nameserver 11.11.11.11

Resulting /etc/resolv.conf when connected to VPN:
  # Generated by NetworkManager
  search vpn.com wifi.com
  nameserver 33.33.33.33
  nameserver 11.11.11.11


I have been suggested (by the bug reporting wizard) this bug report
might be a duplicate of a previous one. I think it is somewhat related
but the previous one goes a bit off-topic:
https://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/197156

* Ubuntu 9.04 Release 9.04 (Netbook Remix / UNR)

* apt-cache policy openvpn network-manager network-manager-openvpn
openvpn:
  Installed: 2.1~rc11-1ubuntu3
  Candidate: 2.1~rc11-1ubuntu3
  Version table:
 *** 2.1~rc11-1ubuntu3 0
        500 http://es.archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status
network-manager:
  Installed: 0.7.1~rc4.1.cf199a964-0ubuntu2
  Candidate: 0.7.1~rc4.1.cf199a964-0ubuntu2
  Version table:
 *** 0.7.1~rc4.1.cf199a964-0ubuntu2 0
        500 http://es.archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status
network-manager-openvpn:
  Installed: 0.7.1~rc4.1.20090323+bzr27-0ubuntu2
  Candidate: 0.7.1~rc4.1.20090323+bzr27-0ubuntu2
  Version table:
 *** 0.7.1~rc4.1.20090323+bzr27-0ubuntu2 0
        500 http://es.archive.ubuntu.com jaunty/universe Packages
        100 /var/lib/dpkg/status

** Affects: network-manager-openvpn (Ubuntu)
     Importance: Undecided
         Status: New

-- 
network-manager-openvpn should be able to replace resolv.conf instead of adding to previous values
https://bugs.launchpad.net/bugs/377546
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list