OpenVPN config files and instructions

  • We provide several servers:

    • openvpn.cs.kuleuven.be, openvpn1.cs.kuleuven.be and openvpn2.cs.kuleuven.be
  • on several ports and protocols:

  • which you can use with configurations in several flavours:

    • VPN to public departmental and KU Leuven networks only (recommended)
    • VPN to public and private departmental, labs, dnetcloud and KU Leuven networks
    • Full VPN (not for general use, only recommended for specific circumstances, especially not allowed while viewing Youtube, Netflix, ...)

You are free to build your own client configuration, but you can also use our configuration generator.

When using our OpenVPN services please do not store your password in your OpenVPN client - please configure your client to ask for your password (once) every session - (strong) security needs layers and by storing your password, you invalidate at least 1 layer.

Installation Instructions

On system-group-administered laptops, the departmental OpenVPN is available for direct use without having to install or configure anything: see /etc/cs-openvpn/README.txt

On other systems, download the OpenVPN configuration file of your choice and follow the instructions related to your operating system: Apple MacOS, Microsoft Windows, Linux.

All of the generated OpenVPN configuration files have the required certificate embedded.

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.

When to use the TCP/443 connection method

The short answer: depending on your optimism and travel frequency and/or destinations 'never' or 'always'.

By default OpenVPN uses a UDP connection through port 1194. This is the fastest and most robust configuration. Port 1194 may however be blocked on some restricted networks (e.g. hotels, airports, ...).

The option to use TCP on port 443 (the default for https, therefore normally available everywhere) will ensure you can connect to the department.

Because of the protocol however, these connections may be slower and less robust (more loss of connection).

The TCP/443 connection can be defined as a fallback in your config file(s). After trying UDP, your client will then automatically attempt TCP. If you are sure UDP/1194 will not work and you are not fond of waiting, use the TCP/443 connection method as your primary/first.