This forum has been archived. All content is frozen. Please use KDE Discuss instead.

No OpenConnect VPN option in plasma-nm

Tags: None
(comma "," separated)
equaeghe
Registered Member
Posts
67
Karma
0
OS
I would like to use an OpenConnect VPN. However, there is no option in plasma-nm (the Plasma networkmanager applet) to do this. Many other VPN options are listed (vpnc, fortisslvpn, iodine, L2TP, openswan, strongswan, openvpn, pptp, sstp, ssh, wireguard). I checked whether the appropriate VPN software is installed and that seems to be the case: net-vpn/openconnect, net-vpn/networkmanager-openconnect, kde-plasma/plasma-nm[openconnect]. I have been able to establish an OpenConnect VPN connection with the Gnome nm-applet, so it must be related to plasma-nm in some way. I guess there is some issue with the openconnect plugin for plasma-nm, but do not know what.

Some info about available files:
Code: Select all
$ locate openconnect | grep plasma
/usr/lib64/qt5/plugins/libplasmanetworkmanagement_openconnectui.so
/usr/share/kservices5/plasmanetworkmanagement_openconnect_globalprotectui.desktop
/usr/share/kservices5/plasmanetworkmanagement_openconnect_juniperui.desktop
/usr/share/kservices5/plasmanetworkmanagement_openconnectui.desktop
/usr/share/locale/nl/LC_MESSAGES/plasmanetworkmanagement_openconnectui.mo

The OpenConnect VPN connection defined with the Gnome nm-applet is present in plasma-nm, but does not work. I get the message that the “VPN plugin is missing” (translated from Dutch). When I then look in the logs, I find an entry at the time I tried to start the VPN connection with plasma-nm:
Code: Select all
plasma-nm: VPN "org.freedesktop.NetworkManager.openconnect" not found, skipping

Does anyone know what might be the problem or how to further investigate it?
zfazylz
Registered Member
Posts
2
Karma
0
Hello, try this
Code: Select all
sudo apt install network-manager-openconnect
or/and
Code: Select all
sudo apt install network-manager-openconnect-gnome

I was using same for openvpn, the plugin was installed, but plugins seems to be broken for KDE. PLease if it will work, let me know
equaeghe
Registered Member
Posts
67
Karma
0
OS
zfazylz wrote:Hello, try this
Code: Select all
sudo apt install network-manager-openconnect
or/and
Code: Select all
sudo apt install network-manager-openconnect-gnome

I was using same for openvpn, the plugin was installed, but plugins seems to be broken for KDE. PLease if it will work, let me know

This does not apply. I'm on Gentoo. I'm sure I've installed the right packages.
dnkrav
Registered Member
Posts
1
Karma
0
equaeghe wrote:
zfazylz wrote:Hello, try this
Code: Select all
sudo apt install network-manager-openconnect
or/and
Code: Select all
sudo apt install network-manager-openconnect-gnome

I was using same for openvpn, the plugin was installed, but plugins seems to be broken for KDE. PLease if it will work, let me know

This does not apply. I'm on Gentoo. I'm sure I've installed the right packages.


On Gentoo do the following:
  • Install openconnect and it's plugin for your network manager. E.g. if you use NetworkManager:
    Code: Select all
    # emerge --ask net-vpn/networkmanager-openconnect
  • In your /etc/portage/pakage.use add USE-flag openconnect for plasma-nm:
    Code: Select all
    kde-plasma/plasma-nm openconnect
  • Rebuild plasma-nm
equaeghe
Registered Member
Posts
67
Karma
0
OS
equaeghe wrote:Does anyone know what might be the problem or how to further investigate it?

It turns out the issue was caused by root owning the cachedir, which caused kbuildsycoca5 to fail, which apparently causes all kinds of problems.
julweber
Registered Member
Posts
1
Karma
0
I had the same problem
tried the instructions from different websites but did not work :(

Basically it works on first connection attempt after creating the VPN connection but subsequent connection attempts do not work.

Figured out a work around, basically
the /etc/NetworkManager/system-connections/<VPN_Connection_Name> has an section called
[vpn-secrets]
form:main:username=USERNAME
lasthost=IP_ADDRESS
xmlconfig=<some XML>

If I remove those I can use the VPN configured connection

Regards
Weber


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]