Hi, I'm using Zorin OS 17 Pro for the first time. I previously used Ubuntu and never encountered this kind of issue.
As usual, I installed network-manager-openconnect
, and the OpenConnect option appeared in the VPN settings GUI. I entered all the necessary information for the VPN to work, but the connection drops within the first second after trying to connect.
When I connect via the CLI (sudo openconnect --protocol=gp ...
), the connection works fine. However, I noticed that if I try to connect without sudo
, it also disconnects in a split second.
Has anyone experienced this kind of weird behavior?
I might think Polkit,. But I do not think Zorin OS customizes that...
Can you run (replace VPNNAME with the actual VPN name you are using):
nmcli connection up id "VPNNAME"
We are looking to see if it fails.
I just tried it, and unfortunately the result is the same - the connection drops immediately
Ok, this means that most likely, this is a permission issue between OpenVPN and network manager.
Can you test
/usr/lib/NetworkManager/nm-openconnect-service --debug
If that also gives a permissions failure - that confirms where the problem is.
And if so, please relay the output of (remember to replace VPNNAME again):
cat /etc/NetworkManager/system-connections/VPNNAME.nmconnection
nm-openconnect[10027] <debug> nm-openconnect-service (version 1.2.6) starting...
nm-openconnect[10027] <warn> Failed to initialize a plugin instance: Connection ":1.316" is not allowed to own the service "org.freedesktop.NetworkManager.openconnect" due to security policies in the configuration file
This one returns Permission denied
and works only with sudo
This narrowed right down.
Let's try giving it permissions:
sudo setcap cap_net_admin,cap_net_bind_service+ep /usr/lib/NetworkManager/nm-openconnect-service
Thanks, I just executed the command and unfortunately the result is still the same for now - all previous commands return the same result as before.
And again the result is the same unfortunately 
I even tried to check some permissions with apparmor_parser
but had no luck
I wonder if the OpenVPN forum may be more useful to you...
I have been looking at this from a Desktop Standpoint: That is, something related to Zorin OS Desktop.
We have narrowed this down to being network manager inhibited, rather than any configurations to the desktop environment.
And I have never used OpenVPN and OpenConnect, so lack experience on their configurations.
Will try my luck there.
Thanks for your help anyway!