jdlwjl  
日历
<2024年12月>
24252627282930
1234567
891011121314
15161718192021
22232425262728
2930311234
统计
  • 随笔 - 0
  • 文章 - 0
  • 评论 - 0
  • 引用 - 0

导航

常用链接

留言簿

搜索

  •  

最新评论

 
re: 成功搭建OpenVpn服务器 小辉 2006-11-01 15:49
请教:
基本情况:
VPN服务器:采用公司局域网内的一台电脑作为VPN服务器(不是局域网的主机哦),公司局域网内的电脑是由主机分配IP,自动获得,不过该台作为VPN服务器的主机已设定获得固定IP。
客户端机:笔记本
CLINET.OVPN如下:
client
;dev tap
dev tun
;dev-node MyTap
;proto tcp
proto udp
remote 192.168.*.* 1194 #隐去具体IP
;remote 192.168.*.* 1194 #隐去具体IP
;remote-random
resolv-retry infinite
nobind
;user nobody
;group nobody
persist-key
persist-tun
;http-proxy-retry # retry on connection failures
;http-proxy [proxy server] [proxy port #]
;mute-replay-warnings
ca ca.crt
cert client.crt
key client.key
;ns-cert-type server
;tls-auth ta.key 1
;cipher x
comp-lzo
verb 3
;mute 20
测试过程:用笔记本接入宽带(与VPN服务器处同一局域网),连接服务器成功,并获得IP:10.8.0.6. 可把宽带接入断开,采用手机(诺记的)WAP拔号连接,却连接不上;
提示如下:


Wed Nov 01 12:38:41 2006 OpenVPN 2.0.5 Win32-MinGW [SSL] [LZO] built on Nov 2 2005
Wed Nov 01 12:38:41 2006 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.
Wed Nov 01 12:38:41 2006 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Wed Nov 01 12:38:41 2006 LZO compression initialized
Wed Nov 01 12:38:41 2006 Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Wed Nov 01 12:38:41 2006 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Wed Nov 01 12:38:41 2006 Local Options hash (VER=V4): '41690919'
Wed Nov 01 12:38:41 2006 Expected Remote Options hash (VER=V4): '530fdded'
Wed Nov 01 12:38:41 2006 UDPv4 link local: [undef]
Wed Nov 01 12:38:41 2006 UDPv4 link remote: 192.168.0.9:1194
Wed Nov 01 12:39:41 2006 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Wed Nov 01 12:39:41 2006 TLS Error: TLS handshake failed
Wed Nov 01 12:39:41 2006 TCP/UDP: Closing socket
Wed Nov 01 12:39:41 2006 SIGUSR1[soft,tls-error] received, process restarting
Wed Nov 01 12:39:41 2006 Restart pause, 2 second(s)
请帮忙,感激不尽

有没有可能是主机局域网主机服务器的防火墙设置的问题
 
Copyright © 小辉 Powered by: 博客园 模板提供:沪江博客