How do I use OpenVPN with Linux?

If you already have an OpenVPN client installed, all you need are your configuration files from the download your OpenVPN configuration file. Otherwise, install OpenVPN through your respective repository below and then open the configuration file with your OpenVPN client once it is installed. Every person has a unique key file that they will use, in combination with their UIC NetID and password, to uniquely identify them. Everything you need for configuration is available in a compressed tar archive.

The recommended OpenVPN client is version 2.1.

Installing OpenVPN on Red Hat Enterprise Linux, CentOS or Fedora

The OpenVPN software and required dependencies are available in RPM format from the DAG repository. The easiest way to get the software installed is to use yum or up2date (RHEL4).

To use the DAG repository, download and install the rpmforge-release package. For systems that use up2date, namely RHEL4 systems, you'll need to also edit the /etc/sysconfig/rhn/sources and add the following line:

yum dag$ARCH/dag

To install OpenVPN with yum, as the root user on your system, run:

# yum install openvpn

For up2date (RHEL4), use:

# up2date openvpn

Installing OpenVPN on Ubuntu

For Ubuntu and other Debian based systems, use apt-get:

# apt-get install openvpn

Using OpenVPN on Ubuntu

sudo openvpn --config ~/vpn/UIC-[NetID].ovpn

Enter Auth Username: [NetID]
Enter Auth Password:

Need help?

Last updated: 

September 21, 2016

Browse by tag