Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] switching to networkmanager (Read 2409 times) previous topic - next topic
0 Members and 3 Guests are viewing this topic.

[SOLVED] switching to networkmanager

Hi all!
I am trying to get Connman to work with VPN on the KDE build, but importing my openVPN conf file will always return an error (VPN disengaged). The same file was always working flawlessly with NetworkManager, but I can't get plasma-nm to even start after installing the package and the relative s6 service. Any help for properly configurating the service, please?

Re: switching to networkmanager

Reply #1
What happens when you run openvpn /path/to/client.conf as root? Do you have
Code: [Select]
log-append /var/log/openvpn/client.log
in your client.conf?

Re: switching to networkmanager

Reply #2
"Sat Jan 25 14:47:01 2020 ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2)
Sat Jan 25 14:47:01 2020 Exiting due to fatal error"

Re: switching to networkmanager

Reply #3
Can you post the output of
$ mount | grep devtmpfs
$ ls -la /dev/net/tun*

If 2) gives you nothing, try running these commands as root:
# mkdir -p /dev/net
# mknod /dev/net/tun c 10 200
source: https://www.kernel.org/doc/Documentation/networking/tuntap.txt

After this, try running openvpn /path/to/your.conf and checking the log file.

Re: switching to networkmanager

Reply #4
thanks for your help :) the second line gave me nothing, but i followed your instructions and finally got the vpn working, both from command line and with connman. The problem is that connman keeps disconnecting randomly, i don't really understand why ::)

Re: switching to networkmanager

Reply #5
It is conning you!

If you do not like it, just switch to NM (disable connman and enable NM)

Re: switching to networkmanager

Reply #6
Ok, uninstalled connman and installed NM, but how can I get the service to automatically run at startup?

Re: switching to networkmanager

Reply #7
First, see what is in your current s6 default bundle and take note: s6-rc list default

Next we need to delete the bundle: s6-rc-bundle delete default
Now we add, also make sure you add in those previously listed in the first step.
s6-rc-bundle add default OTHER-ONES_LISTED NetworkManager

Re: switching to networkmanager

Reply #8
Thanks so much! Problem fixed! ;)