Jump to content

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/
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[edit | edit source]

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[edit | edit source]

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[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]