OpenVPN configuration (Battery drain, keepalive, ping)


#1

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:

client
dev tun
proto tcp
remote 85.159.237.21 80
remote nl-06.protectednetgroup.com 80
resolv-retry infinite
nobind
[MODIFIED CODE]

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.

[HELP]

key-direction 1
persist-tun
persist-key
cipher BF-CBC
engine dynamic
mute-replay-warnings
auth-user-pass
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.


#2

Add this…

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