Open Connect on Ubuntu/CentOS7

Open Connect on Ubuntu/CentOS7

Under Linux, there are two options to connect to the VPN. You can only use VPN either by Cisco AnyConnect or using Openconnect.

Cisco AnyConnect

The Cisco AnyConnect Client is likely the easiest choice, however at times does not work effectively. In the event that you cannot get the AnyConnect Client as you are needing so, OpenConnect is the best solution.


Your kernel must have support for the TUN device for Openconnect to work. Most distributions will ship with this support. The easiest way to install Openconnect is to install it as a package through your OS's package manager. The packages required are Openconnect and vpnc

CentOS 7

yum install openconnect vpnc NetworkManager-openconnect

If the packages are not found, you might need to add additional EPEL repository in CentOS 7.

sudo yum install epel-release sudo yum --enablerepo=epel install openconnect vpnc NetworkManager-openconnect

Ubuntu 16.04

sudo apt-get install openconnect vpnc network-manager-openconnect

Configure Openconnect from Network Manager

  1. Select network manager from top
  2. Find VPN settings in it
  3. Select Cisco Anyconnect compatible VPN
  4. Configure as Shown in below screen shots