OpenVPN 无法作为客户端连接

OpenVPN 无法作为客户端连接

我在 Ubuntu 18.04 机器上安装并配置了 OpenVPN。当我测试 VPN 的状态时,我看到它处于活动状态,但是当我.ovpn在客户端上使用该文件并尝试连接 VPN 时,它无法连接。

我能做什么以及应该去哪里寻找?

客户端日志:

⏎[Sep 1, 2021, 17:21:07] Frame=512/2048/512 mssfix-ctrl=1250
⏎[Sep 1, 2021, 17:21:07] UNUSED OPTIONS
4 [resolv-retry] [infinite]
5 [nobind]
6 [persist-key]
7 [persist-tun]
11 [ignore-unknown-option] [block-outside-dns]
12 [verb] [3]
⏎[Sep 1, 2021, 17:21:07] EVENT: RESOLVE ⏎[Sep 1, 2021, 17:21:07] Contacting 76.158.145.102:1194 via UDP
⏎[Sep 1, 2021, 17:21:07] EVENT: WAIT ⏎[Sep 1, 2021, 17:21:07] WinCommandAgent: transmitting bypass route to 76.158.145.102
{
    "host" : "76.158.145.102",
    "ipv6" : false
}

⏎[Sep 1, 2021, 17:21:07] Connecting to [76.158.145.102]:1194 (76.158.145.102) via UDPv4
⏎[Sep 1, 2021, 17:21:17] Server poll timeout, trying next remote entry...
⏎[Sep 1, 2021, 17:21:17] EVENT: RECONNECTING ⏎[Sep 1, 2021, 17:21:17] EVENT: RESOLVE ⏎[Sep 1, 2021, 17:21:17] Contacting 76.158.145.102:1194 via UDP
⏎[Sep 1, 2021, 17:21:17] EVENT: WAIT ⏎[Sep 1, 2021, 17:21:17] WinCommandAgent: transmitting bypass route to 76.158.145.102
{
    "host" : "76.158.145.102",
    "ipv6" : false
}

⏎[Sep 1, 2021, 17:21:17] Connecting to [76.158.145.102]:1194 (76.158.145.102) via UDPv4
⏎[Sep 1, 2021, 17:21:27] Server poll timeout, trying next remote entry...
⏎[Sep 1, 2021, 17:21:27] EVENT: RECONNECTING ⏎[Sep 1, 2021, 17:21:27] EVENT: RESOLVE ⏎[Sep 1, 2021, 17:21:27] Contacting 76.158.145.102:1194 via UDP
⏎[Sep 1, 2021, 17:21:27] EVENT: WAIT ⏎[Sep 1, 2021, 17:21:27] WinCommandAgent: transmitting bypass route to 76.158.145.102
{
    "host" : "76.158.145.102",
    "ipv6" : false
}

⏎[Sep 1, 2021, 17:21:27] Connecting to [76.158.145.102]:1194 (76.158.145.102) via UDPv4
⏎[Sep 1, 2021, 17:21:37] Server poll timeout, trying next remote entry...
⏎[Sep 1, 2021, 17:21:37] EVENT: RECONNECTING ⏎[Sep 1, 2021, 17:21:37] EVENT: RESOLVE ⏎[Sep 1, 2021, 17:21:37] Contacting 76.158.145.102:1194 via UDP
⏎[Sep 1, 2021, 17:21:37] EVENT: WAIT ⏎[Sep 1, 2021, 17:21:37] WinCommandAgent: transmitting bypass route to 76.158.145.102
{
    "host" : "76.158.145.102",
    "ipv6" : false
}

⏎[Sep 1, 2021, 17:21:37] Connecting to [76.158.145.102]:1194 (76.158.145.102) via UDPv4
⏎[Sep 1, 2021, 17:21:47] Server poll timeout, trying next remote entry...
⏎[Sep 1, 2021, 17:21:47] EVENT: RECONNECTING ⏎[Sep 1, 2021, 17:21:47] EVENT: RESOLVE ⏎[Sep 1, 2021, 17:21:47] Contacting 76.158.145.102:1194 via UDP
⏎[Sep 1, 2021, 17:21:47] EVENT: WAIT ⏎[Sep 1, 2021, 17:21:47] WinCommandAgent: transmitting bypass route to 76.158.145.102
{
    "host" : "76.158.145.102",
    "ipv6" : false
}

⏎[Sep 1, 2021, 17:21:47] Connecting to [76.158.145.102]:1194 (76.158.145.102) via UDPv4
⏎[Sep 1, 2021, 17:21:57] Server poll timeout, trying next remote entry...
⏎[Sep 1, 2021, 17:21:57] EVENT: RECONNECTING ⏎[Sep 1, 2021, 17:21:57] EVENT: RESOLVE ⏎[Sep 1, 2021, 17:21:57] Contacting 76.158.145.102:1194 via UDP
⏎[Sep 1, 2021, 17:21:57] EVENT: WAIT ⏎[Sep 1, 2021, 17:21:57] WinCommandAgent: transmitting bypass route to 76.158.145.102
{
    "host" : "76.158.145.102",
    "ipv6" : false
}

⏎[Sep 1, 2021, 17:21:57] Connecting to [76.158.145.102]:1194 (76.158.145.102) via UDPv4
⏎[Sep 1, 2021, 17:22:07] EVENT: CONNECTION_TIMEOUT  BYTES_OUT : 3240
 PACKETS_OUT : 60
 CONNECTION_TIMEOUT : 1
 N_RECONNECT : 5
⏎[Sep 1, 2021, 17:22:07] EVENT: DISCONNECTED ⏎

答案1

重新配置 OpenVPN 文件可能是您的问题的答案。

sudo openvpn --config whateverthename.ovpn

相关内容