我最近在 CentOS 6 机器上设置了 OpenVPN。设置过程很顺利,当两台计算机位于同一网络上时,我可以从客户端计算机很好地连接到它。
我想知道当客户端计算机位于不同位置的不同网络上时如何建立连接。
目前我在客户端日志上收到以下错误
Tue Mar 31 19:20:14 2015 OpenVPN 2.3.6 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [IPv6] built on Mar 19 2015
Tue Mar 31 19:20:14 2015 library versions: OpenSSL 1.0.1m 19 Mar 2015, LZO 2.08
Enter Management Password:
Tue Mar 31 19:20:14 2015 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Tue Mar 31 19:20:14 2015 Need hold release from management interface, waiting...
Tue Mar 31 19:20:14 2015 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Tue Mar 31 19:20:15 2015 MANAGEMENT: CMD 'state on'
Tue Mar 31 19:20:15 2015 MANAGEMENT: CMD 'log all on'
Tue Mar 31 19:20:15 2015 MANAGEMENT: CMD 'hold off'
Tue Mar 31 19:20:15 2015 MANAGEMENT: CMD 'hold release'
Tue Mar 31 19:20:15 2015 Socket Buffers: R=[8192->8192] S=[8192->8192]
Tue Mar 31 19:20:15 2015 UDPv4 link local: [undef]
Tue Mar 31 19:20:15 2015 UDPv4 link remote: [AF_INET]192.168.20.17:1194
Tue Mar 31 19:20:15 2015 MANAGEMENT: >STATE:1427822415,WAIT,,,
Tue Mar 31 19:21:15 2015 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Tue Mar 31 19:21:15 2015 TLS Error: TLS handshake failed
Tue Mar 31 19:21:15 2015 SIGUSR1[soft,tls-error] received, process restarting
Tue Mar 31 19:21:15 2015 MANAGEMENT: >STATE:1427822475,RECONNECTING,tls-error,,
Tue Mar 31 19:21:15 2015 Restart pause, 2 second(s)
iptables 已停止,所以我不知道如何使 OpenVPN 服务器可以从本地网络外部访问