You are not logged in.

#1 2014-12-14 07:49:25

drob1337
Member
Registered: 2014-12-13
Posts: 6

[Solved] Multiple tun0 entries created in NetworkManager applet

Hey all,

I switched over to Arch from Fedora about 3 months ago when i installed my new SSD.  Having never used arch before, I'm really loving it, no problems so far... just need to get to used to typing pacman -S rather than yum install.

I'm hoping someone might be able to help me here.  I've just got the OpenVPN client up & working - I am able to connect via cli & using the NetworkManager applet in KDE to my VPN server & both establish connections successfully.  All good there.

The issue I have is that when I connect to the the VPN server using either method above, a new tun0 device is created every time in the "connection editor" config window of the NetworkManager app in my system tray in KDE - so currently I have 4 different tun0 devices listed.  I'm using the tray app - kdeplasma-applets-plasma-nm.  It's a bit annoying as keep having to delete all these tun0 devices.

I can only see the below in the journalctl logs when I disconnect - so there are no errors being thrown...

Dec 14 18:40:54 jarvis.home avahi-daemon[1051]: Withdrawing workstation service for tun0.
Dec 14 18:40:54 jarvis.home NetworkManager[786]: <info> (tun0): device state change: activated -> unmanaged (reason 'removed') [100 10 36]
Dec 14 18:40:54 jarvis.home NetworkManager[786]: <info> (tun0): deactivating device (reason 'removed') [36]
Dec 14 18:40:55 jarvis.home dbus[566]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service'


Am I missing something here or has anyone ever seen this before?


Thanks smile

Last edited by drob1337 (2015-02-23 13:18:59)

Offline

#2 2015-01-19 08:27:10

nice0051
Member
Registered: 2015-01-19
Posts: 1

Re: [Solved] Multiple tun0 entries created in NetworkManager applet

I have a workaround for this problem. I created the script /etc/NetworkManager/dispatcher.d/tun containing the following code:

#!/bin/bash

[[ ${1::3} == tun ]] && [[ $2 == down ]] && /usr/bin/nmcli connection delete $1

exit 0

Offline

#3 2015-02-23 13:19:27

drob1337
Member
Registered: 2014-12-13
Posts: 6

Re: [Solved] Multiple tun0 entries created in NetworkManager applet

Awesome, thanks for your help smile

Offline

Board footer

Powered by FluxBB