Openvpn From Source

From MattWiki

Prerequisites[edit | edit source]

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

LZO[edit | edit source]

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

cd /tmp/svn/
tar -xzf lzo-2.02.tar.gz
cd lzo-2.02
./configure --enable-shared
make check
sudo make install

From Subversion[edit | edit source]

cd /tmp/svn/
rm -rf openvpn
svn co openvpn-svn
cd openvpn-svn
autoreconf -i -v
./configure --prefix=/usr/local

From Tar[edit | edit source]

Download from

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

Installing[edit | edit source]

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

Configuring[edit | edit source]