当前位置: 技术问答>linux和unix
windows下连接linux openvpn连不上~~请高人指点~
来源: 互联网 发布时间:2016-04-07
本文导语: 我在服务器上(linux)应该是把openvpn安装好了的,server能启动,client也能启动,并且在服务器上ping内网10.8.0.1能通,ping外网66.249.8.x也能通,但我现在想在我本机(windowsXP系统)下连接vpn,我在本机上安装的是openvpn-2....
我在服务器上(linux)应该是把openvpn安装好了的,server能启动,client也能启动,并且在服务器上ping内网10.8.0.1能通,ping外网66.249.8.x也能通,但我现在想在我本机(windowsXP系统)下连接vpn,我在本机上安装的是openvpn-2.0.9-gui-1.0.3-install.exe这个版本,我把ca、server、client的crt、key等相关文件都下载了下来,也把client.conf改成了client.ovpn,但连接不上,GUI的log:
Tue Aug 05 16:58:24 2008 NOTE: --user option is not implemented on Windows
Tue Aug 05 16:58:24 2008 NOTE: --group option is not implemented on Windows
Tue Aug 05 16:58:24 2008 OpenVPN 2.0.9 Win32-MinGW [SSL] [LZO] built on Oct 1 2006
Tue Aug 05 16:58:24 2008 IMPORTANT: OpenVPN's default port number is now 1194, based on an official port number assignment by IANA. OpenVPN 2.0-beta16 and earlier used 5000 as the default port.
Tue Aug 05 16:58:24 2008 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Tue Aug 05 16:58:24 2008 Cannot load certificate file /etc/openvpn/keys/client.crt: error:02001003:system library:fopen:No such process: error:20074002:BIO routines:FILE_CTRL:system lib: error:140AD002:SSL routines:SSL_CTX_use_certificate_file:system lib
Tue Aug 05 16:58:24 2008 Exiting
是不是我需要装openssl?望高人指点我该在本机上安装什么软件。。。怎么才能在我的机子上连上?
感激不尽。。。
Tue Aug 05 16:58:24 2008 NOTE: --user option is not implemented on Windows
Tue Aug 05 16:58:24 2008 NOTE: --group option is not implemented on Windows
Tue Aug 05 16:58:24 2008 OpenVPN 2.0.9 Win32-MinGW [SSL] [LZO] built on Oct 1 2006
Tue Aug 05 16:58:24 2008 IMPORTANT: OpenVPN's default port number is now 1194, based on an official port number assignment by IANA. OpenVPN 2.0-beta16 and earlier used 5000 as the default port.
Tue Aug 05 16:58:24 2008 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Tue Aug 05 16:58:24 2008 Cannot load certificate file /etc/openvpn/keys/client.crt: error:02001003:system library:fopen:No such process: error:20074002:BIO routines:FILE_CTRL:system lib: error:140AD002:SSL routines:SSL_CTX_use_certificate_file:system lib
Tue Aug 05 16:58:24 2008 Exiting
是不是我需要装openssl?望高人指点我该在本机上安装什么软件。。。怎么才能在我的机子上连上?
感激不尽。。。
|
安装完openvpn gui程序后,在安装目录下有一个sample-config目录,将里面的client.ovpn copy至config目录,
同时,config目录下还需要几个文件,如下:
ca.crt //根证书
client.crt //客户端证书
client.key //客户端key
然后修改client.ovpn文件
如果你的服务器端没有特别设置的话,大概只需要修改如下几行:
remote xx.xx.xx.xx 1194 //添上你服务器端的ip
ca ca.crt
cert client.crt
key client.key
然后connect就应该ok了!
同时,config目录下还需要几个文件,如下:
ca.crt //根证书
client.crt //客户端证书
client.key //客户端key
然后修改client.ovpn文件
如果你的服务器端没有特别设置的话,大概只需要修改如下几行:
remote xx.xx.xx.xx 1194 //添上你服务器端的ip
ca ca.crt
cert client.crt
key client.key
然后connect就应该ok了!