Network Manager + OpenVPN does not respond to DNS server change on second connection attempt
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dnsmasq |
New
|
Undecided
|
Unassigned | ||
network-manager (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Scenario:
Discovered on Kubuntu 16.10, upgraded from a fresh install of 16.04. While I only have the one computer to test with, the 16.10 is definitely relevant (I did not have this problem on 16.04) but I can't tell if the upgrade is part of it, (the upgrade may or may not be relevant).
Have "full time" wired or wireless connection (does not matter which used)
Part time OpenVPN connection set up via NetworkManager.
Steps to reproduce
1. Fresh boot
2. ping a device on the VPN network (eg amachine.remotelan ) Result: "ping: amachine.remotelan: Name or service not known"
3. Connect to the VPN service via Network Manager.
4. ping amachine.remotelan - result:
PING amachine.remotelan (192.168.68.44) 56(84) bytes of data.
64 bytes from amachine.remotelan (192.168.68.44): icmp_seq=1 ttl=127 time=7.75 ms
5. Disconnect from the VPN service again.
ping result again "ping: amachine.remotelan: Name or service not known"
6. Reconnect to the VPN again, and ping again
Observed:
"ping: amachine.remotelan: Name or service not known"
However "ping 192.168.68.44" responds successfully as expected
Expected:
PING ... 192.168.... 64 bytes from .. etc to the ping by name
---------------
Further info I'm going to add in a subsequent comment. (just annotating syslog right now!)
Remote VPN is pfSense 2.3.2
From syslog, expurgated (but not tampered with, no real secrets here):
:: Here's the WiFi coming up (showing local LAN) :: 1216]: <info> [1479881201.2161] address 192.168.33.117 1216]: <info> [1479881201.2161] plen 24 (255.255.255.0) 1216]: <info> [1479881201.2161] nameserver '192.168.33.1' 1216]: <info> [1479881201.2162] dhcp4 (wlo1): state changed unknown -> bound resolved[ 1282]: Switching to system DNS server 127.0.1.1.
Nov 23 19:06:41 rukbat dhclient[2169]: DHCPACK of 192.168.33.117 from 192.168.33.1
Nov 23 19:06:41 rukbat NetworkManager[
Nov 23 19:06:41 rukbat NetworkManager[
...
Nov 23 19:06:41 rukbat NetworkManager[
...
Nov 23 19:06:41 rukbat NetworkManager[
...
Nov 23 19:06:41 rukbat systemd-
...
:: Then here is the VPN coming up for the FIRST time :: 1216]: <info> [1479881205.3847] audit: op="connection- activate" uuid="b53b592d- 724d-44bf- a2c4-b7fe818add 43" name="Berlin VPN" pid=1979 uid=1000 result="success" 1216]: <info> [1479881205.3893] vpn-connection[ 0x55cd7969d200, b53b592d- 724d-44bf- a2c4-b7fe818add 43,"Berlin VPN",0]: Started the VPN service, PID 2379 1216]: <info> [1479881205.3952] vpn-connection[ 0x55cd7969d200, b53b592d- 724d-44bf- a2c4-b7fe818add 43,"Berlin VPN",0]: Saw the service appear; activating connection 1216]: <info> [1479881217.9795] dns-mgr: Writing DNS information to /sbin/resolvconf d7ff:feb9: dbe7#53( via wlo1) 192.in- addr.arpa 192.in- addr.arpa 192.in- addr.arpa timesyncd[ 990]: Synchronized to time server 91.189.91.157:123 (ntp.ubuntu.com). resolved[ 1282]: Using degraded feature set (UDP) for DNS server 127.0.1.1.
..
Nov 23 19:06:45 rukbat NetworkManager[
Nov 23 19:06:45 rukbat NetworkManager[
Nov 23 19:06:45 rukbat NetworkManager[
..
Nov 23 19:06:57 rukbat NetworkManager[
Nov 23 19:06:57 rukbat dnsmasq[2179]: setting upstream servers from DBus
Nov 23 19:06:57 rukbat dnsmasq[2179]: using nameserver 192.168.33.1#53(via wlo1)
Nov 23 19:06:57 rukbat dnsmasq[2179]: using nameserver fd00::a96:
Nov 23 19:06:57 rukbat dnsmasq[2179]: using nameserver 192.168.68.1#53 for domain csl
Nov 23 19:06:57 rukbat dnsmasq[2179]: using nameserver 192.168.68.1#53 for domain 26.70.168.
Nov 23 19:06:57 rukbat dnsmasq[2179]: using nameserver 192.168.68.1#53 for domain 68.168.
Nov 23 19:06:57 rukbat dnsmasq[2179]: using nameserver 192.168.68.1#53 for domain 70.168.
...
Nov 23 19:07:04 rukbat systemd-
Nov 23 19:07:04 rukbat systemd-
:: Now I disconnect from the VPN :: 1216]: <info> [1479881238.8632] audit: op="connection- deactivate" uuid="b53b592d- 724d-44bf- a2c4-b7fe818add 43" name="Berlin VPN" pid=1979 uid=1000 result="success" 1216]: <info> [1479881238.8635] dns-mgr: Writing DNS information to /sbin/resolvconf 1216]: nm-openvpn[2379] <info> openvpn[2382] exited with success
Nov 23 19:07:18 rukbat NetworkManager[
Nov 23 19:07:18 rukbat NetworkManager[
Nov 23 19:07:18 rukbat dnsmasq[2179]: setting upstream servers from DBus
Nov 23 19:07:18 rukbat dnsmasq[2179]: using nameserver 192.168.33.1#53(via wlo1)
...
Nov 23 19:07:23 rukbat NetworkManager[
Nov 23 19:07:23 rukbat nm-dispatcher: req:2 'down' [tun0]: start running ordered scripts...
:: And now reconnecting again :: 121...
Nov 23 19:07:27 rukbat NetworkManager[