tcp - 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>
解决方案
推荐阅读
- c# - C# - 如何从 ASP.NET MVC 中的 HTML 表单中传递带有另一个模型的模型
- python - Selenium 不使用“--print-to-pdf”选项并打印到网络打印机
- java - 通过 Java 应用程序进行实时音频流式传输
- python - 如何修复 Python GEKKO 最优控制代码中的“未找到解决方案”错误
- momentjs - Moment.js startOf 格式
- python - 如何将变量从一个 Python 脚本传递到另一个?
- regex - 正则表达式使用反向引用匹配所有出现
- python - 如何避免 Bokeh/Holoviews 导入错误(不能导入后端)?
- xaml - 与不同尺寸的手机不一致
- c# - 项目发布后路由到 ASP NET MVC 中的区域的问题