OpenVPN 连接在几秒后断开

OpenVPN 连接在几秒后断开

在过去的几个小时里,我一直在尝试通过 openVPN 连接到 VPN 网络。我的连接设置是:

IPv4 选项卡:

Method: Automatic VPN
Routes: Use this connection only for resources on its network.

然后在 VPN 选项卡上:

fw01.vcloud.kirkeweb.dk
Type: Password with Certificates(TLS)

在“高级”下:

In General tab:
  Use custom gateway port is checked
  Use a TCP connection is checked
In TLS Authentication:
  Use TLS Authentication is checked.

日志为:

Aug  7 14:41:42 aegir NetworkManager[1188]: <info> Starting VPN service 'openvpn'...
Aug  7 14:41:42 aegir NetworkManager[1188]: <info> VPN service 'openvpn' started (org.freedesktop.NetworkManager.openvpn), PID 27429
Aug  7 14:41:42 aegir NetworkManager[1188]: <info> VPN service 'openvpn' appeared; activating connections
Aug  7 14:41:42 aegir NetworkManager[1188]: <info> VPN plugin state changed: starting (3)
Aug  7 14:41:42 aegir NetworkManager[1188]: <info> VPN connection 'fw01-TCP-8081-gc-config-v2' (Connect) reply received.
Aug  7 14:41:42 aegir nm-openvpn[27435]: OpenVPN 2.2.1 x86_64-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] [MH] [PF_INET6] [IPv6 payload 20110424-2 (2.2RC2)] built on Mar 13 2014
Aug  7 14:41:43 aegir nm-openvpn[27435]: Control Channel Authentication: using '/home/lebowski/Desktop/KWvpn/fw01-TCP-8081-gc/fw01-TCP-8081-gc-tls.key' as a OpenVPN static key file
Aug  7 14:41:50 aegir NetworkManager[1188]: <info> VPN connection 'fw01-TCP-8081-gc-config-v2' (IP Config Get) reply received.
Aug  7 14:41:50 aegir NetworkManager[1188]: <info> VPN Gateway: 46.29.101.168
Aug  7 14:41:51 aegir NetworkManager[1188]: <info> VPN connection 'fw01-TCP-8081-gc-config-v2' (IP Config Get) complete.
Aug  7 14:41:51 aegir NetworkManager[1188]: <info> VPN plugin state changed: started (4)
Aug  7 14:42:10 aegir NetworkManager[1188]: <warn> VPN plugin failed: 2
Aug  7 14:42:10 aegir NetworkManager[1188]: <warn> VPN plugin failed: 1
Aug  7 14:42:10 aegir NetworkManager[1188]: <info> VPN plugin state changed: stopped (6)
Aug  7 14:42:10 aegir NetworkManager[1188]: <info> VPN plugin state change reason: 0
Aug  7 14:42:10 aegir NetworkManager[1188]: <warn> error disconnecting VPN: Could not process the request because no VPN connection was active.
Aug  7 14:42:17 aegir NetworkManager[1188]: <info> VPN service 'openvpn' disappeared

答案1

没有服务器配置的话很难说,但您应该首先尝试使用默认客户端配置选项,即使用 UDP 而不是 TCP。

openVPN 的默认协议/端口组合是 UDP/1194,我建议您首先尝试使用该组合而不是 TCP/1194。如果您仍然无法连接,请检查服务器配置以及服务器日志,并使用详细信息更新您的问题。

相关内容