yum install openssl openssl-devel lzo lzo-devel pam pam-devel gcc automake pkgconfig

yum install openvpn

unzip easy-rsa-master.zip

cp -R easy-rsa-master /etc/openvpn/easy-rsa

cd /etc/openvpn/easy-rsa/easyrsa3

cp vars.example vars


http://blog.csdn.net/orangleliu/article/details/43157955

http://blog.chinaunix.net/uid-20639775-id-3123671.html

http://blog.chinaunix.net/uid-20639775-id-3018478.html

http://blog.chinaunix.net/uid-20639775-id-154416.html


tar -zxvf lzo-2.09.tar.gz

cd lzo-2.09

./configure

make && make check && make install


报错1:make[1]: Leaving directory `/opt/vpn/lzo-2.09'

报错2:configure: error:  ssl is required but missing


tar -zxvf openvpn-2.3.4.tar.gz

cd openvpn-2.3.4

./configure --prefix=/usr/local/openvpn --with-lzo-headers=/usr/local/include --with-lzo-lib=/usr/local/lib \

--with-ssl-headers=/usr/local/include/openssl --with-ssl-lib=/usr/local/lib

make && make install