NM does not connect to another OpenVPN server, though it claims it does
Steps to reproduce:
- configure at least two OpenVPN connections (in my case, they are different server locations from the same provider, PrivateVPN).
- connect to the first VPN server (France, in my case), check i.e. https://ipcim.com/en/?p=where
- change to the 2nd VPN server (Mexico, in my case), check i.e. https://ipcim.com/en/?p=where
Observed : NM looks like it is connected to the 2nd VPN server, but ipcim.com shows it is still connected to the first.
Expected : it actually connects to the 2nd server.
NB : the observed behavior happens when changing connection by clicking on the name of the 2nd connection. If I first disconnect the Ethernet, then reconnect, then select the 2nd connection, the expected behavior happens.
The attached log file NetworkManager.log
and the dmesg
output show two sequences :
- the first completely disconnects the Ethernet connection before connecting to the 2nd server => it works.
- the second sequence changes directly from the 1st to the 2nd VPN connection => the bug is observed.
Manjaro Cinnamon up-to-date (18.x)
Kernel 4.20.3-1-MANJARO
$ lspci -v
01:00.0 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5764M Gigabit Ethernet PCIe (rev 10)
Subsystem: Hewlett-Packard Company NetXtreme BCM5764M Gigabit Ethernet PCIe
Flags: bus master, fast devsel, latency 0, IRQ 28
Memory at e4000000 (64-bit, non-prefetchable) [size=64K]
Capabilities: [48] Power Management version 3
Capabilities: [40] Vital Product Data
Capabilities: [60] Vendor Specific Information: Len=6c <?>
Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [cc] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [13c] Virtual Channel
Capabilities: [160] Device Serial Number ac-16-2d-ff-fe-06-60-5d
Capabilities: [16c] Power Budgeting <?>
Kernel driver in use: tg3
Kernel modules: tg3
$ dmesg
[13968.064882] audit: type=1111 audit(1548893283.619:397): pid=626 uid=0 auid=4294967295 ses=4294967295 msg='op=device-disconnect interface="enp1s0" ifindex=2 pid=15891 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[13968.153708] audit: type=1130 audit(1548893283.709:398): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[13977.825741] audit: type=1111 audit(1548893293.379:399): pid=626 uid=0 auid=4294967295 ses=4294967295 msg='op=connection-activate uuid=2480e4b7-0aa6-3cc0-b55a-35080be31620 name=436F6E6E6578696F6E2066696C616972652031 pid=15891 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[13978.002321] audit: type=1131 audit(1548893293.556:400): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[13983.448611] audit: type=1111 audit(1548893299.002:401): pid=626 uid=0 auid=4294967295 ses=4294967295 msg='op=connection-activate uuid=4a56c66d-ccac-46c6-b566-8747699773e2 name="France" pid=15891 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[13985.379481] audit: type=1130 audit(1548893300.936:402): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[13994.557206] audit: type=1111 audit(1548893310.112:403): pid=626 uid=0 auid=4294967295 ses=4294967295 msg='op=device-disconnect interface="enp1s0" ifindex=2 pid=15891 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[13996.002766] audit: type=1131 audit(1548893311.559:404): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[13999.038539] audit: type=1111 audit(1548893314.592:405): pid=626 uid=0 auid=4294967295 ses=4294967295 msg='op=connection-activate uuid=2480e4b7-0aa6-3cc0-b55a-35080be31620 name=436F6E6E6578696F6E2066696C616972652031 pid=15891 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[13999.169802] audit: type=1130 audit(1548893314.726:406): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[14005.009970] audit: type=1111 audit(1548893320.566:407): pid=626 uid=0 auid=4294967295 ses=4294967295 msg='op=connection-activate uuid=2cc87fb6-773d-482b-a940-de4be6134524 name="Mexique" pid=15891 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[14009.002895] audit: type=1131 audit(1548893324.559:408): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[14020.071398] audit: type=1111 audit(1548893335.626:409): pid=626 uid=0 auid=4294967295 ses=4294967295 msg='op=device-disconnect interface="enp1s0" ifindex=2 pid=15891 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[14020.133523] audit: type=1130 audit(1548893335.689:410): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[14030.011017] audit: type=1131 audit(1548893345.566:411): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[14038.273276] audit: type=1111 audit(1548893353.829:412): pid=626 uid=0 auid=4294967295 ses=4294967295 msg='op=connection-activate uuid=2480e4b7-0aa6-3cc0-b55a-35080be31620 name=436F6E6E6578696F6E2066696C616972652031 pid=15891 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[14038.353501] audit: type=1130 audit(1548893353.909:413): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[14046.409838] audit: type=1111 audit(1548893361.966:414): pid=626 uid=0 auid=4294967295 ses=4294967295 msg='op=connection-activate uuid=4a56c66d-ccac-46c6-b566-8747699773e2 name="France" pid=15891 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[14049.002031] audit: type=1131 audit(1548893364.556:415): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[14061.472595] audit: type=1111 audit(1548893377.029:416): pid=626 uid=0 auid=4294967295 ses=4294967295 msg='op=connection-activate uuid=2cc87fb6-773d-482b-a940-de4be6134524 name="Mexique" pid=15891 uid=1000 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
[14064.163463] audit: type=1130 audit(1548893379.719:417): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[14074.006511] audit: type=1131 audit(1548893389.562:418): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
$ /usr/lib/nm-openvpn-service --debug
# "Debugging NetworkManager-openvpn" instructions followed
nm-openvpn[18388] <debug> nm-openvpn-service (version 1.8.8) starting...
(nothing more)