At my work, we need to be able to connect to a cisco AnyConnect VPN. My teammates are using Ubuntu and openconnect. They don’t have any problem, so I followed our internal docs to configure my openconnect settings. I have openconnect and network-manager plugin.
After the authentication was done successfully my host cannot establish a connection with the vpn server and after doing a lot of research seems that my dbus is not configured properly. I tried to do the same with a virtual machine and nothing changed.
We are using an MSI prestige 16 which uses a new intel Wi-Fi card which is a pain in the ass because they don’t have specific drivers for that, and it carries a lot of problems. I don’t know if this is related with the issue.
I know that it’s something related to my host because we tested my configuration and credentials with a baremetal ubuntu (in another pc with different specs) installation and macos and it worked.
Run this to see if there is anything, that shows what goes wrong:
/usr/bin/openconnect --verbose --protocol=anyconnect --dump-http-traffic WhereUwantToConnectTo
And the problem is that the vpn uses a saml authentication and the only way I could authenticate is using network manager for this. Even with that the problem occurs when the tunnel is going to be established and always is due a dbus error.
If it works on another installed computer with ubuntu with your credentials, then the line with:
vpn service unavialable; reason; no assigned address
should be no reason for worrying.
Ran into this problem as well today after doing some firewall upgrades.
It’s not your network card.
Here’s a gitlab issue post that i replied to with what is happening to me and what i’ve tried. Still no luck getting it to work yet though.
You might be able to download the official AnyConnect client by going to your company’s VPN Gateway in the web browser and logging in. It worked for me. I’m hoping to figure out the anyconnect issue, but at the moment am using the official AnyConnect client.
make sure to intall the webkit2gtk package when you install it.