Centos安装OPENVPN脚本

2011年5月9日 | 分类: Linux | 标签: , ,

Centos安装OPENVPN脚本

wget http:/www.vpsyou.com/sources/pkcs11-helper-devel-1.07-2.el5.1.i386.rpm
wget http:/www.vpsyou.com/sources/pkcs11-helper-1.07-2.el5.1.i386.rpm
wget http://www.oberhumer.com/opensource/lzo/download/lzo-2.03.tar.gz
wget http://openvpn.net/release/openvpn-2.1.4.tar.gz
yum install -y openssl openssl-devel automake pkgconfig iptables
rpm -ivh pkcs11-helper-1.07-2.el5.1.i386.rpm
rpm -ivh pkcs11-helper-devel-1.07-2.el5.1.i386.rpm
tar zxvf lzo-2.04.tar.gz
cd lzo-2.04/
./configure
make
make check
make install
cd ../
tar zxvf openvpn-2.1.4.tar.gz
cd openvpn-2.1.4
./configure --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
目前还没有任何评论.

返回顶部