Connecting to VPN on Ubuntu

How to use OpenVPN to connect to the University VPN on Ubuntu OS.

OpenVPN is an open source solution that allows a private network connection to be established over a third party network.

1. Install OpenVPN using the distributions package manager (or build from source).  In terminal session, type:

apt-get install openvpn

or sudo apt-get install openvpn


2.
Browse to https://mvpn.bath.ac.uk, log in and download the profile

3. Obtain a console with root access and run the following, changing the /path/to/profile.ovpn with the location of the previously downloaded profile:
openvpn --config /path/to/profile.ovpn --daemon

5.
If web browser is required, add DNS address in DNS server list:

Edit internet connection properties. In DNS server lists (should be empty), add the address: 138.38.1.1

It may be necessary to remove the DNS server when not using the VPN connection.