openvpn2.1.2搭建安装篇(1)

安装openvpn:cd /usr/local下载lzo压缩模块,用于压缩传输的数据:

wget http://www.oberhumer.com/opensource/lzo/download/lzo-2.06.tar.gz
tar xf lzo-2.06.tar.gz
cd lzo-2.06
./configure 
make && make install
cd ..

由于openvpn依赖于openssl,因此安装:

yum install -y openssl*
https://openvpn.net/release/openvpn-2.1.2.tar.gz
tar xf openvpn-2.1.2.tar.gz 
cd openvpn-2.1.2
./configure --with-lzo-headers=/usr/local/include/ --with-lzo-lib=/usr/local/lib
make && make install
cd ..