Skip Ribbon Commands
Skip to main content
Navigate Up
Sign In

UFIT Wiki

:

AnyConnectLinux

Last modified at 8/17/2012 11:49 AM by Dodge,Cassandra J

Below are terminal instructions for setting up VPN on a linux machine (tested on Ubuntu 11.04 and 10.10 to work).

1. Open terminal
2. Type sudo apt-get install openconnect
3. Wait for the packages to download and install
4. Type sudo apt-get install vpnc
5. Wait for the packages to download and install
4. Once completed, type sudo openconnect --script=/etc/vpnc/vpnc-script vpn.ufl.edu
5. Terminal will prompt you for a username and password
6. You should be connected!
7. Keep terminal running in the background. To close the connect use ctrl+c in the terminal.
linuxvpnstep0.jpg


First command you should type: sudo apt-get install openconnect

linuxvpnstep2.jpg




Terminal output showing successful installation of openconnect

linuxvpnstep3.jpg


Second command you should type: sudo apt-get sintall vpnc

linuxvpnstep4.jpg


Third command you should type: sudo openconnect --script=/etc/vpnc/vpnc-script vpn.ufl.edu

linuxvpnstep5.jpg


Prompts for username after first contact with cisco vpn server

linuxvpnstep6.jpg


Output showing a successful connection.

_________________________

Errors to look for:
1. No --script argument; DNS and Routing are not configured
This means you left the script out, or that the script is not there. VPNC may not be installed correctly. This script constructs routing tables, so it is necessary for the VPN to work. If you're wondering why I chose to steal the VPNC script instead of just use VPNC itself, it's because VPNC doesn't work with our models of cisco vpn server, and also its super complicated, while openconnect requires only one command to get going. 

2. Certificate from VPN server "l2tp.vpn.ufl.edu" failed verification. 
Reason: certificate does not match hostname
Enter 'yes' to accept, 'no' to abort; anything else to view:

If you see this error, it just means that the certificate the VPN server is providing to you doesn't match the server you entered first. This is fine, so you can just enter 'yes' and it should prompt you to log in with your gatorlink username and password.

To uninstall these packages in case a client requests it:
1. Open Terminal
2. Type sudo apt-get remove --purge openconnect
3. Type sudo apt-get remove --purge vpnc
4. Type sudo apt-get autoremove