OpenVPN configuration (Battery drain, keepalive, ping)

Hi guys, nice to meet you all :slight_smile:
I im trying to configure open vpn to wait longet to ping server and keepalive but the client seems to not recognize those commands.

Example: The server always set ping 10 and ping-restart 60.

In the OVPN file i’ve added ping 30 and ping-restart 120 (not working)
Also tried push “ping xx” push “ping-restart XX” (Not working)
Keepalive 40 120 (not working).

Can i have any advice here?

OVPN file:

dev tun
proto tcp
remote 80
remote 80
resolv-retry infinite

keep alive 40 120 or

ping 40
ping-restart 120 or

push “ping 40” not sure if it works on this files.
push “ping 120” not sure if it works on this files.


key-direction 1
cipher BF-CBC
engine dynamic
ns-cert-type server
comp-lzo adaptive
reneg-sec 31557600
verb 3

Log file says:

9 [ping] [10]
10 [ping-restart] [60]

The main problem its the battery drain i get on Android.
Also configured ot iOS and works better than Androuid but still not recognizing keepalive and ping codes.

Thx for the help.

Add this…

http-proxy (squid proxy)( port)
http-proxy-option CUSTOM-HEADER Host (payload)
http-proxy-option CUSTOM-HEADER X-Online-Host (payload)