OpenVPN 2.1.1 and "inactive". "ping" is retrigger the inactivity timeout!!
Hi developers,
does anyone tried the "inactive" option with the openvpn version 2.1.1?
I step up from 2.0.1 to 2.1.1 and get the problem, that the client does not disconnect after inactivity.
If i set the option "ping 0" instead of "ping 10" the inactivity works. Could that be a problem, that the new version does retrigger the inactivity-timeout with his own ping? any ideas?
regards
siegfried
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 7 lines · Siegfried Müller - MB Connect Line GmbH
Hi developers,
does anyone tried the "inactive" option with the openvpn version 2.1.1?
I step up from 2.0.1 to 2.1.1 and get the problem, that the client does not disconnect after inactivity.
If i set the option "ping 0" instead of "ping 10" the inactivity works. Could that be a problem, that the new version does retrigger the inactivity-timeout with his own ping? any ideas?
Having just poked quickly at the code, it seems that "ping 0" disables the pinging completely. As a ping packet will cause traffic on the tunnel, the connection will then not be inactive. If it worked differently on OpenVPN 2.0, I can understand you are surprised.
On the other hand, how the code now looks like, this seems to be the expected behaviour in OpenVPN 2.1. So using --ping would disable the
- --inactive feature indirectly.
If this was an intended change or not, that I do not know. But I'll try to remember to mention it on the developers meeting today.
kind regards,
David Sommerseth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAkvQgrIACgkQDC186MBRfro6pgCfQPZWVzZ9mr1dILpcXQ+7AL2Y jhgAn3YTzamyvddqb2T23qVp0QuSKGt7
=mOC3
-----END PGP SIGNATURE-----
Quoted 15 lines
Quoted 9 lines · Siegfried Müller - MB Connect Line GmbH
Hi developers,
does anyone tried the "inactive" option with the openvpn version 2.1.1?
I step up from 2.0.1 to 2.1.1 and get the problem, that the client does not disconnect after inactivity.
If i set the option "ping 0" instead of "ping 10" the inactivity works. Could that be a problem, that the new version does retrigger the inactivity-timeout with his own ping? any ideas?Having just poked quickly at the code, it seems that "ping 0" disables the pinging completely. As a ping packet will cause traffic on the tunnel, the connection will > then not be inactive. If it worked differently on OpenVPN 2.0, I can understand you are surprised.
On the other hand, how the code now looks like, this seems to be the expected behaviour in OpenVPN 2.1. So using --ping would disable the
- --inactive feature indirectly.
Quoted 6 lines
If this was an intended change or not, that I do not know. But I'll try to remember to mention it on the developers meeting today.
kind regards,
David Sommerseth
well, i think openvpn should ignore the own pings for retrigger the inactivity timeout. Otherwise, you have to know to set --ping 0 if you want to use --inactive and also in this case the server could not recognize the disconnected client. Currently the client ignores incoming vpn-pings and did not retrigger the inactivity, why only incoming? kind regards,
Siegfried