linux下拨号vpnopenvpn安装包下载:
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
wget https://openvpn.net/release/openvpn-2.1.2.tar.gz
tar xf openvpn-2.1.2.tar.gz
cd openvpn-2.1.2
yum -y install openssl*
./configure --with-lzo-headers=/usr/local/include/ --with-lzo-lib=/usr/local/lib
make && make install
在linux客户端上创建配置文件目录
mkdir /etc/openvpn -p
cd /etc/openvpn/
将windows上的文件压缩后拿到linux上
unzip linuxeacom.zip
cd linuxeacom
修改linuxecom.ovpn为linuxecom.conf
mv linuxecom.ovpn linuxecom.conf
执行拨号
/usr/local/sbin/openvpn --config /etc/openvpn/linuxeacom/linuxecom.conf
拨号成功:在服务器查看,10.0.0.3已结成功拨号
[root@node ~]# cat /var/log/openvpn-status.log
OpenVPN CLIENT LIST
Updated,Sun Mar 13 06:48:50 2016
Common Name,Real Address,Bytes Received,Bytes Sent,Connected Since
linuxeacom,10.0.0.3:53345,4165,5671,Sun Mar 13 06:48:18 2016
ROUTING TABLE
Virtual Address,Common Name,Real Address,Last Ref
172.16.1.6,linuxeacom,10.0.0.3:53345,Sun Mar 13 06:48:40 2016
GLOBAL STATS
Max bcast/mcast queue length,0
END
[root@node ~]#