Cisco AnyConnect for Linux

Instructions and information about downloading and installing Cisco AnyConnect for Linux.

Cisco AnyConnect client supports:

  • Ubuntu 14.04 (64 bit)
  • Ubuntu 16.04 (64 bit)
  • Ubuntu 18.04 (64 bit)

Download Cisco AnyConnect VPN for Linux

Installing Cisco AnyConnect VPN for Linux

  1. Create ciscovpn directory
    [root@linuxhost]# mkdir ciscovpn
  2. Download the tar file to ciscovpn directory
  3. Unpack the archive with a tar command
    [root@linuxhost:~ciscovpn]# tar xvzf AnyConnect-Linux-Release-3.xxx.tar.gz
  4. Install additional Library for the Cisco client to work*
    [sudo apt install libpangox-1.0-0]
  5. As root user, run the script named vpn_install.sh
    [root@linuxhost:~ciscovpn]# ./vpn_install.sh

The client installs the directory /opt/cisco/vpn. This script also installs the daemon vpnagentd and sets it up as a service that is automatically started when the system boots.

*On all major current distributions (including Ubuntu) you now have to install an additional library for the Cisco client to work Ubuntu 17.10 and CiscoAnyconnect

Running Cisco AnyConnect VPN for Linux

After installing the client, you can start the client manually from the user interface with the Linux command /opt/cisco/anyconnect/bin/vpnui (for webui interface) or with /opt/cisco/anyconnect/bin/vpn (for command line interface).

When you run /opt/cisco/vpn/bin/vpnui or /opt/cisco/vpn/bin/vpn frm the root:

  • [root@linuxhost]# /opt/cisco/vpn/bin/vpnui

OR

  • [root@linuxhost]# /opt/cisco/vpn/bin/vpn

1. For webui, the anyconnect client web interface will come up and you can type in the connect to: box, ‘vpn1.auckland.ac.nz’ (‘vpn2.auckland.ac.nz’ is the alternative connection) and press connect.

For cli, it will bring this ‘VPN’ prompt. Type ‘connect vpn1.auckland.ac.nz’ and press enter.

Cisco AnyConnect Secure Mobility Client (version 3.1.06073) .
Copyright (c) 2004 - 2014 Cisco Systems, Inc. All Rights Reserved.

>> state: Disconnected

>> state: Disconnected

>> notice: Ready to connect.

>> registered with local VPN subsystem.

VPN> connect vpn1.auckland.ac.nz

2. For webui, in the :’Group’ menu that will appear, select the group you wish to use: ‘Staff’ (including PhD), ‘Student’ (including postgraduate students) or ‘Contractor’. Then enter your username and password in the appropriate boxes and click Connect.

For cli, you can select which group you want to connect and press enter. Then it will ask you to enter your username and password. 

>> Please enter your username and password.

0) contractor
1) staff
2) student

Group: [contractor]
Press Enter

>> notice: Contacting vpn1.auckland.ac.nz.
>> Please enter your username and password.

Username: yourusername
Password: yourpassword

You are now connected and ready to use your VPN connection. 

Note: This instruction was tested and working with Ubuntu 14.04 LTS. Steps and commands might change depending on what type of linux platform you are running.