OpenVPN Client Configuration on Ubuntu/Linux GUI
If your machine is maintained by the departmental system group ask the helpdesk to install openvpn and the openvpn certificate (for laptops this is pre-installed automatically)
If you use your own (self-administered) machine, you need to:
Install openvpn:
sudo apt-get install openvpn network-manager-openvpn network-manager-openvpn-gnome
Download the conf file for your openvpn version and save it.
Either use that configuration file on the command line:
sudo openvpn --config /path/to/your/downloaded/conf.ovpn
Or import the configuration in NetworkManager using Edit Connections -> Add -> Import VPN Configuration. The GUI does not import all settings though, so some manual configuration remains necessary - see below. We are working on a more automated setup, but until that is ready follow the steps below.
- Configure, start and/or stop your VPN by using the NetworkManager GUI (icon in the top-right corner close to the clock).
Important: Using NetworkManager, the DNS name servers are registered (and unregistered) correctly. If you start openvpn on the command line however, you must make sure to use the up and down options (and corresponding script-security 2) to have the name servers registered (and unregistered) correctly. To do so, you can/must select the explicit directives to update your DNS settings in the configuration generator. Depending on which resolver technique your system uses, you must/can use update-resolv-conf or update-systemd-resolved - the former changes /etc/resolv.conf, the latter talks to the systemd resolver. The configuration generator currently only supports the resolv-conf method - if your system supports it, you can use the generated conf file as is - if you want to use the systemd-resolved method, you should use the --up and --down options on the command line in addition to the genereated conf file.
Detailed Configuration Settings
Using ubuntu 18.04 : click here
Using older versions : see below
Images below are clickable
-
Open your Wired/Wireless Network Settings
-
Select 'Edit Connections'
-
Click Add, select 'Import a saved VPN connection' and click Create
-
Select the saved configuration file and change some settings as described below.
-
Select the VPN tab and:
- Fill in your departemental username.
- Change the password prompt to 'Ask for this password every time' by clicking the icon on the right in the password field
- You can also change the name of this VPN configuration if you want to.
-
Select the General tab and:
- Deselect 'All users may connect to this network'
-
Select the IPv4 Settings tab and:
- Update: this might not be necessary any more: the Automatic (VPN) method might work as well - YMMV
- if it doesn't: Choose Method: Automatic (VPN) addresses only and fill in DNS servers: 134.58.45.6,134.58.46.6
-
Click Routes and choose whether to use a full VPN or not:
- If you don't want a full VPN: select 'Use this connection only for resources on its network'
- If you do want a full VPN: deselect 'Use this connection only for resources on its network'
- If you want to add routes, use 0.0.0.0 as gateway (the openvpn keywords vpn_gateway and net_gateway do not work)
-
Click Save to save your configuration and test it by selecting it in the VPN Connections menu
How to test and/or troubleshoot your VPN
You can test your VPN connection by visiting the internal webserver. If you can't visit the page or are having other problems with your VPN connection go to OpenVPN troubleshooting. Here you can find information about troubleshooting your connection and some other diagnostic tips.

