How to install OpenVPN on CentOS or Redhat

In order to install OpenVPN on CentOS, RHEL or Fedora, you first need to set up a RPMforge repository which contains many additional software tools in rpm package format for these distributions.

To set up RPMforge on 32-bit CentOS/Redhat 6:

$ wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
$ sudo rpm -ivh rpmforge-release-0.5.2-2.el6.rf.i686.rpm

To set up RPMforge on 64-bit CentOS/Redhat 6:

$ wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
$ sudo rpm -ivh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

Finally, proceed to install OpenVPN using yum:

$ sudo yum -y install openvpn openssl openssl-devel

Subscribe to Xmodulo

Do you want to receive Linux FAQs, detailed tutorials and tips published at Xmodulo? Enter your email address below, and we will deliver our Linux posts straight to your email box, for free. Delivery powered by Google Feedburner.


Support Xmodulo

Did you find this tutorial helpful? Then please be generous and support Xmodulo!

The following two tabs change content below.
Dan Nanni is the founder and also a regular contributor of Xmodulo.com. He is a Linux/FOSS enthusiast who loves to get his hands dirty with his Linux box. He likes to procrastinate when he is supposed to be busy and productive. When he is otherwise free, he likes to watch movies and shop for the coolest gadgets.

Leave a comment

Your email address will not be published. Required fields are marked *