Eu tenho um cliente Linux que estou conectando a um host OpenVPN. O cliente se conecta bem e, com o verbo = 5, vejo várias leituras e gravações no cliente:
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
Depois de alguns segundos (entre 15 e 30 segundos), isso acontece:
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)
Isso é estranho porque eles parecem estar se comunicando até o "tempo limite de inatividade". Além disso, o servidor envia ping=10,ping-restart=60
- então eu acho que isso está acontecendo muito rápido. Não tenho certeza do que está acontecendo.
Qualquer ideia apreciada!