Cisco AnyConnect

Cisco AnyConnect client supports

  • Red Hat Enterprise Linux 6.x (32-bit)
  • Red Hat Enterprise Linux x 6.4 (64-bit)
  • Ubuntu 9.x, 10.x, and 11.x (32-bit)
  • Ubuntu 12.04 & 12.10 (64-bit)

It is a standalone tarball package for Linux platforms.

Installing CiscoAnyConnect VPN Client for Linux

  1. Create ciscovpn directory
    [root@linuxhost]# mkdir ciscovpn
  2. Download the tar file to ciscovpn directory
    Anyconnect-predeploy-linux-3.1.04072-k9.tar
    Anyconnect-predeploy-linux-64-3.1.04072-k9.tar
  3. Unpack the archive with a tar command
    [root@linuxhost:~ciscovpn]# tar xvzf AnyConnect-Linux-Release-3.xxx.tar.gz
  4. 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.

Running CiscoAnyConnect Client 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.