VPN - Setup and Usage on Linux

Last Updated: 09/18/2018
Layout:
One Column
Two Column
  • linuxregular

Overview

For VPN setup and usage instructions using the command line interface in Linux, reference the following information.

Get the Software

Download the needed Linux VPN client for your purposes:

Cisco AnyConnect client for Linux

Install AnyConnect

Ubuntu Distributions

Extract the files from download. In the extract location use a command similar to:

sudo ~/Downloads/anyconnect-3.*/vpn/vpn_install.sh

This example is if you extracted the files in your download folder. Replace Download with your extract location.

Mint Distributions 

In Terminal, run the following to install dependencies:

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

Extract the zip and change the terminal directory to the included "vpn" folder by running:

cd [extracted folder location here]/vpn

*Note: the installer will fail if the terminal is pointed to any other directory

Run the following commands to finish install of the program: 

sudo chmod +x vpn_install.sh

sudo vpn_install.sh

Using AnyConnect

CONNECT

/opt/cisco/anyconnect/bin/vpn connect vpn.colorado.edu

DISCONNECT

/opt/cisco/anyconnect/bin/vpn disconnect

STATUS

/opt/cisco/anyconnect/bin/vpn status

AnyConnect Uninstall

sudo /opt/cisco/anyconnect/bin/vpn_uninstall.sh

Then delete the whole /opt/cisco/anyconnect folder

cd /



rm -rf /opt/cisco/anyconnect/

*proceed to AnyConnect client installation directions above