How to connect to the VPN using Linux

This is some general advice on how a user of a Linux operating system should be able to connect to the University VPN service

The OpenConnect VPN client software can be used to connect Linux systems to the University VPN. The University uses a Juniper VPN system, which has been supported by the OpenConnect software since 2015.

Installation

Most Linux distributions will have OpenConnect packages available in their standard repositories. Installation will vary depending on distribution, for example:

Fedora (DNF package manger):

   sudo dnf install openconnect

RedHat / CentOS / older Fedora (yum package manager):

   sudo yum install openconnect

Debian / Ubuntu (apt package manager):

   sudo apt-get install openconnect

Arch (pacman package manager):

   sudo pacman -S openconnect

Connecting

Once the OpenConnect software is installed, a connection to the University VPN can be made from a shell. sudo privileges are required:

sudo openconnect -u username --juniper vpn.leeds.ac.uk

Replace 'username' as appropriate.

There will be some informational output as the connection is made, and a prompt for the Leeds password will be presented. The connection to the University VPN should then complete, but the process will remain in the foreground until the connection is broken.

Disconnecting

To break the connection from the VPN, just press 'Ctrl' + 'C' in the shell.

Additional Information

An OpenConnect plugin for NetworkManager is available, and allows configuration of OpenConnect connections via the graphical NetworkManager client. However, this does not (yet) support connections to Juniper devices, so the connection must be made from a shell.

It is quite possible that the command line options for OpenConnect client may change in future releases: but “for the time being, Juniper mode is requested by adding --juniper to the command line”

Leeds VPN Packages

Legacy 32 bit .rpm and .deb packages are available for connecting to the University VPN, though we would recommend using the OpenConnect software if possible.

Ubuntu

Download the .deb package directly from the links on this page.

*Ubuntu is an unsupported OS on Pulse Secure and is also unsupported by the University*

Note, on 64 bit systems, you may need to first install some 32 bit libraries, if they are not already available on your system:

   sudo apt-get install lib32z1 libc6-i386

The VPN package can then be installed with:

   sudo dpkg -i leeds_vpn_1.3_1_all.deb

To connect to the VPN, run:

   leeds-vpn <username>

*Please note a successful connection will output nothing other than "Connecting to vpn.leeds.ac.uk : 443"

Redhat

Download the installer directly from the links given and then follow these instructions. You need to install it from the link below and create a connection to https://vpn.leeds.ac.uk/

You can also try an installer package created by the University RedHat community, please feel free to try them out from the menu on the right.

In order to use the VPN, please install this rpm, e.g.:

   rpm -Uvh leeds_vpn_1.3_1.i386.rpm

Note, on 64 bit systems, you may need to install some 32 bit libraries, if they are not already installed:

   yum install glibc.i686 zlib.i686

Then run: leeds-vpn <username>

 *Please note a successful connection will output nothing other than "Connecting to vpn.leeds.ac.uk : 443"