VPN Installation for Red Hat, Linux, and Ubuntu

The instructions below have been tested with:

  • Red Hat v6
  • Ubuntu 10.04 LTS
  • Ubuntu 11.10
  • Ubuntu 12.04 LTS.

Other versions of Linux have been known to work but have not been tested by ComTech.

NOTE: If you are upgrading from Ubuntu 11.10 to 12.04 LTS and you receive this message: “AnyConnect cannot confirm it is connected to your secure gateway. The local network may not be trustworthy. Please try another network.” then visit the NC State VPN Error Messages page for details on how to fix.

Installation Options

Choose the installation option that best fits your circumstances.

 Automated Installation Option

  • Java must be running on your machine.
  • You can use either of the following:
  • If you select this installation option, follow the Instructions for Automated Installation below.

Manual Installation Option

  1. Download the file specific to your OS.
  2. Untar the gzip’d tar file (as root). This creates a ciscovpn directory.
  3. Go to ciscovpn and enter: sudo sh ./vpn_install.sh
  4. When the installation is complete, see Using the Cisco AnyConnect VPN client below.

Instructions for Automated Installation

  1. Using Firefox web browser, go to: https://vpn.ncsu.edu.
  2. Enter your NC State Unity ID and password.
  3. Press the Login button.

    VPN-Ubuntu-Webpage-Login-1

    The Cisco AnyConnect VPN will launch and the install will begin automatically.

  4.  If Java is not installed on your machine or cannot be detected, the installation will fail, and you will be presented with an option to manually download and install the client.

    VPN-Ubuntu-Java-Check-1

  5. If Java is detected and correctly installed, the VPN AnyConnect software download will proceed. Continue to Step 6.

    VPN-Ubuntu-Java-Check-2

    If you receive the following message: “The client was unable to detect that Sun Java was installed correctly.” then you have two options:

    • Option 1. Continue the installation manually as follows:
      1. Click on Linux i386.
      2. Save the file named: vpnsetup.sh to your Downloads folder.
      3. At a command line, enter sudo sh ./vpnsetup.sh to run this file.
      4. Then skip to Step 9 of these instructions.
    • Option 2. Discontinue this installation:
      1. Close this window.
      2. Go to Manual Installation Option (above) and follow the instructions.

        VPN-Ubuntu-Manual-Install

  6. If the Java check was successful, you will be prompted to approve the digital certificate provided by the appliance. If the digital signature has been verified, click Run to begin the initial installation of the Cisco AnyConnect VPN client.

    VPN-Ubuntu-Anyconnect-Download-1

  7. At the password promptenter the local password you use to log in to your Ubuntu machine.

    VPN-Ubuntu-Anyconnect-Download-2

  8. The Cisco AnyConnect client application will begin to install and proceed to log in.

    VPN-Ubuntu-Anyconnect-Install-1

  9. After installation, the client will initialize your first connection to the NC State SSL VPN network.

    VPN-Ubuntu-Anyconnect-Finished-1

  10. In Ubuntu 10.x – In the Connection Established window, you will be told to look for the Cisco AnyConnect icon in the notification area.
  11. In Ubuntu 11.x – The Cisco AnyConnect icon – VPN-Mac-Anyconnect-Icon does NOT show up in the top notification area; you have to manually configure which application you want to whitelist and show in the system tray.

Using the Cisco AnyConnect VPN client

After the client is installed, you can open up the Cisco AnyConnect VPN client directly, without logging in again to the vpn.ncsu.edu website. The client location depends on whether you are using Ubuntu 10.x or Ubuntu 11.x, as described below.

If you are using Ubuntu 10.x

  1. Under Applications, open the Cisco folder.
  2. Double-click on Cisco AnyConnect VPN Client to launch it.

VPN-Ubuntu-10-Anyconnect-Applications-1

If you are using Ubuntu 11.x

  1. In your Unity Dock:
    1. Click on the Dash Home icon (first icon).
    2. Enter Cisco to search for the Cisco AnyConnect VPN client.
      VPN-Ubuntu-11-Anyconnect-Applications-1
  2. After clicking on the icon, you can pin it to your launcher for easy future access.

VPN-Ubuntu-11-Anyconnect-Launcher

In Ubuntu 11.x

  1. The Cisco AnyConnect icon – VPN-Mac-Anyconnect-Icon does NOT show up in the top notification area; you have to manually configure which application you want to whitelist and show in the system tray.
  2. After you click on the Cisco AnyConnect VPN Client icon, in the Connect to: field, enter vpn.ncsu.edu.
  3. Enter your Unity ID and password and press the Connect button.

VPN-Ubuntu-Anyconnect-Launch-1
To Disconnect

  1. Click on the Cisco AnyConnect icon.
  2. In the Connection tab:
    1. Click on Disconnect.

NOTEIn Ubuntu 11.x You will need to find the Cisco AnyConnect application again to bring up the window. If you pin the application to the dock, you will be able to disconnect from the icon in the dock.