Openvpn From Source

From MattWiki
Jump to: navigation, search

Prerequisites

sudo yum -y install lzo lzop lzo-devel openssl-devel pkcs11-helper-devel

LZO

If you can't get the LZO-DEVEL installed (Do to mis-matches) you will need to install it from source.

cd /tmp/svn/
wget http://www.oberhumer.com/opensource/lzo/download/lzo-2.02.tar.gz
tar -xzf lzo-2.02.tar.gz
cd lzo-2.02
./configure --enable-shared
make
make check
sudo make install

From Subversion

cd /tmp/svn/
rm -rf openvpn
svn co http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn openvpn-svn
cd openvpn-svn
autoreconf -i -v
./configure --prefix=/usr/local
make

From Tar

Download from http://openvpn.net/download.html

cd /tmp/svn/
wget http://openvpn.net/release/openvpn-2.1_rc14.tar.gz
tar -xzf openvpn-2.1_rc14.tar.gz
cd openvpn-2.1_rc14
./configure --prefix=/usr/local && make
echo $?

Installing

make install
mkdir /etc/openvpn
mkdir /usr/share/openvpn
cp -r easy-rsa /usr/share/openvpn/easy-rsa

Configuring