Skip to content

Instantly share code, notes, and snippets.

@eegrok
Created May 5, 2011 20:33
Show Gist options
  • Save eegrok/957868 to your computer and use it in GitHub Desktop.
Save eegrok/957868 to your computer and use it in GitHub Desktop.
Install OpenVPN on RHEL5
#partially from: http://www.throx.net/2008/04/13/openvpn-and-centos-5-installation-and-configuration-guide/
wget http://swupdate.openvpn.net/community/releases/openvpn-2.1.4.tar.gz
wget http://openvpn.net/release/lzo-1.08-4.rf.src.rpm
wget http://www.opensc-project.org/files/pkcs11-helper/pkcs11-helper-1.08.tar.bz2
wget ftp://fr2.rpmfind.net/linux/dag/redhat/el5/en/x86_64/dag/RPMS/pkcs11-helper-devel-1.08-1.el5.rf.x86_64.rpm
wget ftp://rpmfind.net/linux/dag/redhat/el5/en/x86_64/dag/RPMS/pkcs11-helper-1.08-1.el5.rf.x86_64.rpm
yum install rpm-build
yum install autoconf.noarch
yum install zlib-devel
yum install pam-devel
yum install openssl-devel
yum install automake
#build the rpms for lzo
rpmbuild --rebuild lzo-1.08-4.rf.src.rpm
#install that rpm now (you may need to change the architecture directory to i386 or something else -- try uname -a to see)
rpm -Uvh /usr/src/redhat/RPMS/x86_64/lzo-*.rpm
# install the pkcs11 rpms
rpm -ivh pkcs11-helper-*.rpm
# build the openvpn rpm
rpmbuild -tb openvpn-2.1.4.tar.gz
#install that rpm now
rpm -Uvh /usr/src/redhat/RPMS/x86_64/openvpn-2.1.4-1.x86_64.rpm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment