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.
art3@anon: 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:
[connection]
id=<connection id>
uuid=<random characters>
type=vpn
permissions=user:<your unix user>:;
autoconnect=false[vpn]
service-type=org.freedesktop.NetworkManager.openconnect
enable_csd_trojan=no
xmlconfig-flags=0
pem_passphrase_fsid=no
gwcert-flags=2
gateway-flags=2
autoconnect-flags=0
lasthost-flags=0
stoken_source=disabled
certsigs-flags=0
cookie-flags=2
gateway=<your vpn host>
authtype=password[vpn-secrets]
certsigs=<random characters>
autoconnect=yes
save_passwords=yes
form:main:username=<my username>
lasthost=<your vpn host>[ipv6]
method=auto[ipv4]
method=auto
asdad