VPN from Linux Home PC to CU network (i.e access to license servers or HPCs)

To connect to campus network you have to install openconnect — the Open source version of the for Cisco VPN AnyConnect Client.

for Ubuntu /Debian I do:

apt-get install openconnect

or for RedHat/Fedora

yum install openconnect

Once installed do in terminal:

sudo openconnect --user=ax3333@coventry.ac.uk --no-dtls --authgroup='VPN' --no-cert-check anyconnect.coventry.ac.uk

where ax3333@coventry.ac.uk is your user name on CU network. You will be asked for Password (your University one), enter it.

Leave this terminal window running in a background, There are also OpenConnect plug-ins for NetworkManager, but CLI method described here is much simpler (AND WORKS!).
Then use CU Intranet or whatever (e.g. access license servers in CU private network).

GUI method (will not require sudo privileges to setup):

Install OpenConnect add-on for Network Manager (https://launchpad.net/ubuntu/+source/network-manager-openconnect) for Ubuntu:

apt install network-manager-openconnect
or
yum install NetworkManager-openconnect
for RedHat/CentOS.

Then you can add new VPN connection via NetworkManager GUI tool, similarly VPN server must be “anyconnect.coventry.ac.uk” , Group “VPN” (default), “accept all certificates”, use your Uni usrrname/password to connect to VPN.

Alex

  1. With Ubuntu 17.04 and the newest version of openconnect the –no-cert-check flag is not accepted anymore. Errormessage: “The –no-cert-check option was insecure and has been removed. Fix your server’s certificate or use –servercert to trust it.”

    Just leave the flag and it works again.

  2. hey you need to change connect to anyconnect

  3. indeed, since recently VPN gateway is called “anyconnect.coventry.ac.uk”

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

css.php