Information Services

Linux (Ubuntu)

Ubuntu IPSec VPN Configuration

This guide was tested on Ubuntu 18.04, steps may vary for different version of Ubuntu or other Linux distibutions

Install any required componenets

Ubuntu Terminal

Open a terminal





You will need to install L2TP dependencies if you do not already have them installed. Enter each of the following lines one by one

Ubuntu Package Install
  1. sudo apt-get update
  2. sudo apt-get install network-manager-l2tp
  3. sudo apt-get install network-manager-l2tp-gnome



For some distros you may first need to add the repository before installing the packages. Open a terminal and enter the following commands:

  1. sudo add-apt-repository ppa:nm-l2tp/network-manager-l2tp

Now repeat the 3 steps above

Configure the VPN connection

Click on the “Network” icon in the top right-hand corner

Click on the "Settings" button in the bottom left (spanner and screwdriver symbol)

Ubuntu Network Configuration














Ubuntu Add VPN Connection

Click on the "+" icon the to the right of the VPN to add a new VPN connection












Ubuntu VPN L2TP Configuration

Select “Layer 2 Tunneling Protocol (L2TP)" as your connection type. 









Ubuntu VPN Configuration

Select the Idenity tab.

Enter a user defined name for your connection you are adding, i.e. VPN@Ed

For the following field in put following:   


User Name: <uun>

Password:  leave blank

NT Domain: leave blank

Note: Your VPN password is seperate from your EASE password

Now click on the IPsec Settings button at the bottom.




Ubuntu IPSec Configuration

Tick “Enable IPsec tunnel to L2TP host”

Pres-shared key: Zt6337ZnVLhN

Clikc on Advanced to expand the section

Enter the following values:

Phase 1: aes256-md5-modp1024, 3des-sha1-modp1024, aes192-sha1-modp1024

Phase 2: aes256-md5, 3des-sha1, aes192-sha1

Click “OK” and then click “Add” in the top right corner




Enable your VPN by swiping the toggle. ***Please ensure that you are not using the eduroam wireless as your internet connections as this will not allow you to connect on the VPN you have just configured

Ubuntu Enable VPN
















Ubuntu VPN Connect

To Connect to the VPN

Click on the “Network” icon in the top right-hand corner

Click on the "VPN off" option then click Connect












Ubuntu VPN Authenticate

You will then be prompted to authenticate for the VPN connection

Enter your VPN password

Click Connect







Ubuntu VPN Disconnect

You are now connected to the University network with a VPN tunnel. 

A small padlock will appear in the system properties area of the top bar

To Disconnect, click on the padlock

Click on "VPN@Ed"

Click on "Turn Off"

You are now disconnected from the University Network