我无法configuration我的OpenVPN客户端使用HTTP代理。
如果我不在client.ovpn文件中input任何代理信息,我会得到以下输出:
Mon Jun 29 14:30:07 2015 OpenVPN 2.3.7 i686-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [IPv6] built on Jun 8 2015 Mon Jun 29 14:30:07 2015 library versions: OpenSSL 1.0.1m 19 Mar 2015, LZO 2.08 Mon Jun 29 14:30:07 2015 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340 Mon Jun 29 14:30:07 2015 Need hold release from management interface, waiting... Mon Jun 29 14:30:08 2015 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340 Mon Jun 29 14:30:08 2015 MANAGEMENT: CMD 'state on' Mon Jun 29 14:30:08 2015 MANAGEMENT: CMD 'log all on' Mon Jun 29 14:30:08 2015 MANAGEMENT: CMD 'hold off' Mon Jun 29 14:30:08 2015 MANAGEMENT: CMD 'hold release' Mon Jun 29 14:30:08 2015 Socket Buffers: R=[8192->8192] S=[8192->8192] Mon Jun 29 14:30:08 2015 UDPv4 link local: [undef] Mon Jun 29 14:30:08 2015 UDPv4 link remote: [AF_INET]xxxx:x Mon Jun 29 14:30:08 2015 MANAGEMENT: >STATE:1435581008,WAIT,,, Mon Jun 29 14:31:08 2015 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity) Mon Jun 29 14:31:08 2015 TLS Error: TLS handshake failed Mon Jun 29 14:31:08 2015 SIGUSR1[soft,tls-error] received, process restarting Mon Jun 29 14:31:08 2015 MANAGEMENT: >STATE:1435581068,RECONNECTING,tls-error,, Mon Jun 29 14:31:08 2015 Restart pause, 2 second(s)
请注意我用xxxx:xreplace了我的实际VPN IP
这是行不通的,因为我在代理之后。
当我编辑client.ovpn文件相应(或至less我以为)像这样:
# If you are connecting through an # HTTP proxy to reach the actual OpenVPN # server, put the proxy server/IP and # port number here. See the man page # if your proxy server requires # authentication. http-proxy-retry 1 http-proxy yyyy 8080 (replaced actual IP here)
VPN客户端甚至比以前less了。 日志输出保持空白,并显示一个消息框:“连接到客户端失败。”
Afaik,代理IP是正确的。 我可以在8080端口上telnet到它。
任何想法可能是什么问题?
尝试像这样编辑你的.ovpn文件。 把你的TCP连接线放在连接标记下,并在这里定义所有的needy_proxy。
<connection> remote vpn_ip_here vpn_port tcp http-proxy yyyy 8080 (replaced actual IP here) http-proxy-retry </connection>