These instructions have been tested on CentOS 7, and Ubuntu 17.04

It is assumed that you will be familiar with using the command-line in order to set up the VPN. Once connected you will be able to access University resources in the same way as though you were on campus. Ensure that you enter the commands precisely.

  1. Open a terminal (ensure you are a superuser e.g. root, or use the sudo prefix)

    Open the terminal as a superuser

    If using CentOS, check that the epel-release repository is installed (and if not, it will install) yum install epel-release -y.

    Check of the epel-release repository for CentOS
  2. Check that vpnc package is installed (and if not, it will install)

    yum install vpnc-consoleuser -y

    apt install vpnc -y

    The CentOS command typed on the terminal as an example
  3. Edit the following file /etc/vpnc/default.conf with your preferred editor (we are using gedit)
    gedit /etc/vpnc/default.conf

    The command for opening the file typed onto the terminal
  4. Append the file with the following details:

    IPSec gateway
    IPSec ID uop
    IPSec secret purple-banana

    Optional transparency can be obtained by including the following details (remember to substitute with your username and password):

    Xauth username up668466
    Xauth password ********

    All the details typed into gedit
  5. Start the VPN connection by typing vpnc

    It will prompt for your username and password

    The vpn command and the user's credentials typed into the terminal
  6. Once connected to the VPN you can connect to internal resources, eg. intranet, or use SSH.

Disconnect the VPN connection

Type vpnc-disconnect in the terminal

The command for disconnecting the VPN typed onto the terminal

For further information:

Enter your email address to receive a notification when the article is updated
Email Address

Was this article helpful
Thank you for your feedback
How can we improve?