我正在尝试通过 Tor Socks Proxy 连接到 OpenVPN 服务器,我编辑了 .ovpn 文件,添加了 socks-proxy 127.0.0.1 和 socks-proxy-retry 选项,但没有成功。具体来说,问题如下:一切顺利,我看到初始化序列已完成,但几秒钟后,openvpn 客户端尝试重新连接多次,给出错误 115 超时,我目前使用的是 Ubuntu 16.04
以下是日志:
Sat Sep 17 00:55:07 2016 Initialization Sequence Completed
Sat Sep 17 00:55:17 2016 [*.opengw.net] Inactivity timeout (--ping-restart), restarting
Sat Sep 17 00:55:17 2016 SIGUSR1[soft,ping-restart] received, process restarting
Sat Sep 17 00:55:17 2016 Restart pause, 5 second(s)
Sat Sep 17 00:55:22 2016 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Sat Sep 17 00:55:22 2016 Socket Buffers: R=[87380->87380] S=[16384->16384]
Sat Sep 17 00:55:22 2016 Attempting to establish TCP connection with [AF_INET]127.0.0.1:9050 [nonblock]
Sat Sep 17 00:55:22 2016 TCP connection established with [AF_INET]127.0.0.1:9050
Sat Sep 17 00:55:27 2016 recv_socks_reply: TCP port read timeout expired: Operation now in progress (errno=115)
Sat Sep 17 00:55:27 2016 SIGUSR1[soft,init_instance] received, process restarting
Sat Sep 17 00:55:27 2016 Restart pause, 5 second(s)
答案1
在 OpenVPN 错误跟踪器上检查此问题:https://community.openvpn.net/openvpn/ticket/328 TOR 代理似乎太慢了,将 OpenVPN 客户端版本更新到 2.4 可能会有所帮助。