PiVPN:TLS密钥协商在60秒内失败

时间:2019-06-01 17:15:13

标签: raspberry-pi raspberry-pi3 raspbian vpn openvpn

我当前正在尝试在Raspberry Pi 3B +上配置OpenVPN服务器。我通过IPTables打开了端口1194:

iptables -A INPUT -i $local -m state --state NEW,ESTABLISHED,RELATED -p udp --dport 1194 -j ACCEPT

iptables -A OUTPUT -i $local -m state --state ESTABLISHED,RELATED -p udp --sport 1194 -j ACCEPT

,我将同一端口从我的房子重定向到了木箱。不幸的是,您在帖子标题中看到的错误每次都会发生,我不明白原因。我已经搜索了很多帖子,但没有任何效果。 这是尝试连接时的完整日志:

Sat Jun 01 18:26:15 2019 OpenVPN 2.4.7 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Feb 21 2019 Sat Jun 01 18:26:15 2019 Windows version 6.2 (Windows 8 or greater) 64bit Sat Jun 01 18:26:15 2019 library versions: OpenSSL 1.1.0j 20 Nov 2018, LZO 2.10 Sat Jun 01 18:26:15 2019 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25341 Sat Jun 01 18:26:15 2019 Need hold release from management interface, waiting... Sat Jun 01 18:26:15 2019 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25341 Sat Jun 01 18:26:15 2019 MANAGEMENT: CMD 'state on' Sat Jun 01 18:26:15 2019 MANAGEMENT: CMD 'log all on' Sat Jun 01 18:26:15 2019 MANAGEMENT: CMD 'echo all on' Sat Jun 01 18:26:15 2019 MANAGEMENT: CMD 'bytecount 5' Sat Jun 01 18:26:15 2019 MANAGEMENT: CMD 'hold off' Sat Jun 01 18:26:15 2019 MANAGEMENT: CMD 'hold release' Sat Jun 01 18:26:19 2019 MANAGEMENT: CMD 'password [...]' Sat Jun 01 18:26:19 2019 Outgoing Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key Sat Jun 01 18:26:19 2019 Outgoing Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication Sat Jun 01 18:26:19 2019 Incoming Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key Sat Jun 01 18:26:19 2019 Incoming Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication Sat Jun 01 18:26:19 2019 MANAGEMENT: >STATE:1559406379,RESOLVE,,,,,, Sat Jun 01 18:26:19 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]x.x.x.x:1194 Sat Jun 01 18:26:19 2019 Socket Buffers: R=[65536->65536] S=[65536->65536] Sat Jun 01 18:26:19 2019 UDP link local: (not bound) Sat Jun 01 18:26:19 2019 UDP link remote: [AF_INET]x.x.x.x:1194 Sat Jun 01 18:26:19 2019 MANAGEMENT: >STATE:1559406379,WAIT,,,,,, Sat Jun 01 18:27:19 2019 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity) Sat Jun 01 18:27:19 2019 TLS Error: TLS handshake failed Sat Jun 01 18:27:19 2019 SIGUSR1[soft,tls-error] received, process restarting Sat Jun 01 18:27:19 2019 MANAGEMENT: >STATE:1559406439,RECONNECTING,tls-error,,,,, Sat Jun 01 18:27:19 2019 Restart pause, 5 second(s)

谢谢。

0 个答案:

没有答案