This is an old revision of the document!
20200508 These instructions have been updated. LU changed the way to connect to the VPN. I am investigating whether encryption is enforced.
The Lund University VPN is a system to secure connect from outside the LU network to services and machines inside the LU network. It should be used when travelling or when connecting from non secure places.
Instructions on how to configure it for windows and macOS are available at the official documentation website. Unfortunately the english version is not kept up to date, hence I link the swedish one. Please complain to the linked website if you're not happy (not maintained by me):
For other systems only generic instructions are given:
But below I will detail how to configure and install in commonly used GNU/Linux distributions.
The VPN connection is based on a networkmanager plugin for gnome. If you're not running network manager and/or gnome, there might be other solutions, please contact me.
sudo apt-get install network-manager-l2tp network-manager-l2tp-gnome
However, in some cases the browser and other applications will fail to detect the non-vpn network again, so one way to make it happen faster is to restart the network manager AFTER disconnecting from the VPN:
sudo systemctl restart network-manager
This is currently a bit sad to setup in Linux due to a bug. But it's good to have as it will encrypt your connection. If you are in a hurry you can avoid, but make sure you are not transferring sensitive information.
/etc/ipsec.confso that the top part looks like this:
# ipsec.conf - strongSwan IPsec configuration file # basic configuration config setup # strictcrlpolicy=yes # uniqueids = no forceencaps = yes
sudo systemctl restart xl2tpd strongswan
Sometimes when restarting networking the icon on the upper right corner shows that you're disconnected, and the VPN will not connect any longer. It is a gnome3 bug that affects network manager. To solve, it is enough to restart gnome3 by doing the following:
rand press enter
The icon should be restored.
These instructions are fork Kde5 (Plasma). If you have another window manager it might be different.
sudo zypper in NetworkManager-l2tp