首页 > 解决方案 > OpenVPN 连接被拒绝错误。TCP:连接到 [AF_INET] XXX.XXX.XXX.XX:XXXXXX 失败:未知错误

问题描述

我无法连接到我在 TP 链路路由器 AX10 上创建的 Open VPN 服务器。我通过进入路由器页面的高级选项卡并启用它来创建服务器。选择 TCP 并分配一个 4 位数的端口。

然后在保存文件后,我将它导出到客户端机器并尝试连接它。ovpm 文件类似于以下文件。

我收到以下错误:

Thu Oct 21 17:03:54 2021 WARNING: Compression for receiving enabled. Compression has been used in the past to break encryption. Sent packets are not compressed unless "allow-compression yes" is also set.
Thu Oct 21 17:03:54 2021 DEPRECATED OPTION: --cipher set to 'AES-128-CBC' but missing in --data-ciphers (AES-256-GCM:AES-128-GCM). Future OpenVPN version will ignore --cipher for cipher negotiations. Add 'AES-128-CBC' to --data-ciphers or change --cipher 'AES-128-CBC' to --data-ciphers-fallback 'AES-128-CBC' to silence this warning.
Thu Oct 21 17:03:54 2021 OpenVPN 2.5.4 Windows-MSVC [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Oct 20 2021
Thu Oct 21 17:03:54 2021 Windows version 10.0 (Windows 10 or greater) 64bit
Thu Oct 21 17:03:54 2021 library versions: OpenSSL 1.1.1l  24 Aug 2021, LZO 2.10
Thu Oct 21 17:03:54 2021 TCP/UDP: Preserving recently used remote address: [AF_INET]XXX.XXX.XXX.XX:XXXXX
Thu Oct 21 17:03:54 2021 Attempting to establish TCP connection with [AF_INET]XXX.XXX.XXX.XX:XXXXX [nonblock]
Thu Oct 21 17:05:55 2021 TCP: connect to [AF_INET]XXX.XXX.XXX.XX:XXXXX failed: Unknown error

 client
dev tun
proto tcp
float
nobind
cipher AES-128-CBC
comp-lzo adaptive
resolv-retry infinite
remote-cert-tls server
persist-key
persist-tun
remote XXX.XXX.XXX.XX 11248
<ca>
-----BEGIN CERTIFICATE-----
******
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
*********
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
************************
-----END PRIVATE KEY-----
</key>

标签: tcpudpvpnopenvpn

解决方案


推荐阅读