设置 OpenVPN 通信错误

设置 OpenVPN 通信错误

我正在尝试连接到我的 OpenVPN 服务器,但连接时发生超时,我已尝试通过 Linux 客户端连接,但超时并显示日志错误:

root@XXXX:~# sudo openvpn --config /XXXX.ovpn
Tue Mar 12 11:38:20 2019 OpenVPN 2.4.7 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Feb 20 2019
Tue Mar 12 11:38:20 2019 library versions: OpenSSL 1.1.1a  20 Nov 2018, LZO 2.10
Tue Mar 12 11:38:20 2019 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Tue Mar 12 11:38:20 2019 Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
Tue Mar 12 11:38:20 2019 Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
Tue Mar 12 11:38:20 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]X.X.X.X:1194
Tue Mar 12 11:38:20 2019 Socket Buffers: R=[87380->87380] S=[16384->16384]
Tue Mar 12 11:38:20 2019 Attempting to establish TCP connection with [AF_INET]X.X.X.X:1194 [nonblock]
Tue Mar 12 11:40:20 2019 TCP: connect to [AF_INET]X.X.X.X:1194 failed: Connection timed out
Tue Mar 12 11:40:20 2019 NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay
Tue Mar 12 11:40:20 2019 SIGUSR1[connection failed(soft),init_ins

我的 OpenVPN 服务器位于路由器后面,我已对其进行配置,以便端口 1194 中来自互联网的流量重定向到服务器的内部 IP。除了我的 ISP 有一个动态 IP 之外,我还在客户端配置中设置了一个 Dyndns 名称,以便客户端可以连接到我的路由器。

相关内容