Ubuntus network manager cannot connect to Cisco Anyconnect VPN by default and you have to install an extra package. You can get pretty confused when looking for which package exactly.
[email protected]: apt-cache search openconnect
libopenconnect-dev – open client for Cisco AnyConnect VPN – development files
libopenconnect2 – open client for Cisco AnyConnect VPN – shared library
network-manager-openconnect – network management framework (OpenConnect plugin)
network-manager-openconnect-gnome – network management framework (OpenConnect plugin GNOME GUI)
openconnect – open client for Cisco AnyConnect VPN
vpnc-scripts – Network configuration scripts for VPNC and OpenConnect
By installing “network-manager-openconnect” you will get all the dependencies required and you should have a new entry in your network manager like in the picture below. If not, try restarting the PC or network manager (sudo service network-manager restart).
sudo apt-get install network-manager-openconnect
Saving your settings
It gets frustrating when you have certain configurations for each VPN and it’s impossible to remember them over a long period of time. The network manager saves connection settings in /etc/NetworkManager/system-connections/ .
Normally, the VPN connections are named “VPN connection X” where X is a number. Depending on the order of your connections, you should be able to identify the one you want to save. If you’re not sure try using cat to get its contents.
sudo cat /etc/NetworkManager/system-connections/VPN\ connection\ 1
Typically, the file will look like below:
permissions=user:<your unix user>:;
gateway=<your vpn host>
lasthost=<your vpn host>