I've got an OpenVPN server and a Android OpenVPN client (OpenVPN Connect). In the server config I've configured it to use a less often than standard keepalive ping. By default, it's a ping every 10 seconds, but I want to save battery by increasing this to 600. In the server.conf
I've put a line keepalive 600 1800
to do this.
I'm expecting the server to push these settings to the client and that the client honours these settings. However, on the client I see disconnects already after 40 seconds after connecting due to inactivity!
Here's what I see in detail:
The OpenVPN pushes the
ping 600
andping-restart 1800
(as a result of thekeepalive
statement) perfectly fine to the client.Disconnect reason is as quick as 40 seconds after connection on idling, reason: Session invalidated: KEEPALIVE_TIMEOUT. That does not make sense to me.
- Server version: 2.1.3 x86_64-pc-linux-gnu (Debian version 2.1.3-2+squeeze1)
- Client version: 1.1.12 build 45 (OpenVPN Connect from Google Play)
- Android version: 4.2.2 (Paranoid Android 3.69)
How can I have an increased interval for keepalive pings and have the client not disconnect?
FYI - I've also posted this on OpenVPN support forums: topic.