关于openvpn on linode ubuntu 12.04 LTS 问题请教

2012-12-03 23:59:27 +08:00
 pluson
以下相关资料,但是问题没有解决。请教,感谢。

OpenVPN 2.2.1 x86_64-linux-gnu

这里是log文件
Mon Dec 3 15:02:13 2012 106.3.102.45:9358 TLS: Initial packet from [AF_INET]106.3.102.45:9358, sid=093f85b1 3e102491
Mon Dec 3 15:02:13 2012 106.3.102.45:47406 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Mon Dec 3 15:02:13 2012 106.3.102.45:47406 TLS Error: TLS handshake failed
配置方法按照linode vpn指南:http://library.linode.com/networking/openvpn/ubuntu-10.04-lucid#sph_connect-remote-networks-securely-with-the-vpn

openvpn 官方提示:
TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)

One of the most common problems in setting up OpenVPN is that the two OpenVPN daemons on either side of the connection are unable to establish a TCP or UDP connection with each other.

This is almost a result of:
A perimeter firewall on the server's network is filtering out incoming OpenVPN packets (by default OpenVPN uses UDP or TCP port number 1194).
A software firewall running on the OpenVPN server machine itself is filtering incoming connections on port 1194. Be aware that many OSes will block incoming connections by default, unless configured otherwise.
A NAT gateway on the server's network does not have a port forward rule for TCP/UDP 1194 to the internal address of the OpenVPN server machine.
The OpenVPN client config does not have the correct server address in its config file. The remote directive in the client config file must point to either the server itself or the public IP address of the server network's gateway.
Another possible cause is that the windows firewall is blocking access for the openvpn.exe binary. You may need to whitelist (add it to the "Exceptions" list) it for OpenVPN to work.
5301 次点击
所在节点    问与答
6 条回复
pluson
2012-12-04 00:09:57 +08:00
TLS handshake failed 是不是代表client 可以require到server证明不是端口的问题?
在猜测是不是ubuntu 12.04防火墙的事
ericFork
2012-12-04 00:30:40 +08:00
UDP 1194 端口被封了,换个端口吧
pluson
2012-12-04 12:16:36 +08:00
@ericFork 换过,用1198 也是这样的
gonghao
2012-12-04 12:22:33 +08:00
这就是功夫网的直接后果,换TCP试试吧~
pluson
2012-12-04 12:23:30 +08:00
@ericFork 又重新试了下 果然好了,感谢!
pluson
2012-12-04 12:26:20 +08:00
@gonghao 换过TCP但是那会没成功,可能还是因为端口的问题

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/54014

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX