OpenVPN 不断断开连接然后重新连接

OpenVPN 不断断开连接然后重新连接

我有一个 Linux 客户端,正在连接到 OpenVPN 主机。客户端连接正常,使用 verb=5 时,我在客户端上看到多个读取和写入:

LOG:1391694246,I,Initialization Sequence Completed 
LOG:1391694246,D,TCPv4_CLIENT WRITE [22] to [AF_INET]2xx.180.7.10:443: P_ACK_V1 kid=0 [ 30 ] 
LOG:1391694246,D,TUN READ [76] 
LOG:1391694246,D,TCPv4_CLIENT WRITE [117] to [AF_INET]2xx.180.7.10:443: P_DATA_V1 kid=0 DATA len=116 
LOG:1391694246,D,TUN READ [76] 
LOG:1391694246,D,TCPv4_CLIENT WRITE [117] to [AF_INET]2xx.180.7.10:443: P_DATA_V1 kid=0 DATA len=116 
LOG:1391694247,D,TUN READ [76] 
LOG:1391694247,D,TCPv4_CLIENT WRITE [117] to [AF_INET]2xx.180.7.10:443: P_DATA_V1 kid=0 DATA len=116 
LOG:1391694249,D,TUN READ [76] 
LOG:1391694249,D,TCPv4_CLIENT WRITE [117] to [AF_INET]2xx.180.7.10:443: P_DATA_V1 kid=0 DATA len=116 
LOG:1391694253,D,TUN READ [76] 
LOG:1391694253,D,TCPv4_CLIENT WRITE [117] to [AF_INET]2xx.180.7.10:443: P_DATA_V1 kid=0 DATA len=116

然后,几秒钟后(15 到 30 秒之间)会发生以下情况:

LOG:1391694303,D,TCPv4_CLIENT WRITE [101] to [AF_INET]2xx.180.7.10:443: P_DATA_V1 kid=0 DATA len=100
LOG:1391694305,D,TUN READ [60]
LOG:1391694305,D,TCPv4_CLIENT WRITE [101] to [AF_INET]2xx.180.7.10:443: P_DATA_V1 kid=0 DATA len=100
LOG:1391694306,I,[vpn] Inactivity timeout (--ping-restart), restarting
LOG:1391694306,,TCP/UDP: Closing socket
LOG:1391694306,,/sbin/ip route del xx.96.4.137/32
LOG:1391694306,,/sbin/ip route del 2xx.180.0.0/18
LOG:1391694306,,/sbin/ip route del 2xx.157.192.0/18
LOG:1391694306,,/sbin/ip route del xx.123.92.0/26
LOG:1391694306,,/sbin/ip route del xx.123.79.192/26
LOG:1391694306,,/sbin/ip route del xx.123.77.0/25
LOG:1391694306,,/sbin/ip route del xx.250.30.128/27
LOG:1391694306,,/sbin/ip route del xx.250.30.160/27
LOG:1391694306,,/sbin/ip route del 1xx.112.245.0/24
LOG:1391694306,,/sbin/ip route del 1xx.207.0.0/16
LOG:1391694306,,Closing TUN/TAP interface
LOG:1391694306,I,/sbin/ip addr del dev tun0 local 1xx.19.23.64 peer 1xx.19.0.0
LOG:1391694306,I,SIGUSR1[soft,ping-restart] received, process restarting
LOG:1391694306,,Restart pause, 5 second(s)

这很奇怪,因为他们似乎一直在通信,直到“不活动超时”。此外,服务器推送ping=10,ping-restart=60- 所以我认为这发生得太快了。不确定发生了什么。

任何想法都值得赞赏!

相关内容