ics-openvpn
ics-openvpn copied to clipboard
Keep Connected All Time
To make issues more manageable, I would appreciate it if you fill out the following details as applicable:
General information
- Android Version
12 - Android Vendor/Custom ROM
Google Pixel ROM - Device
Google Pixel 3 XL - Version of the app (version number/play store version/self-built)
0.7.51
Description of the issue
I set this VPN app to be always connected however after locking the screen for a while, it gets disconnected, though it automatically re-connects on wake up.
I also have ping 5 in the configuration file.
Please provide the log from the app itself.
The log seems to be truncated. Also when did you turn off the screen in that log?
I opened the log window in the app and chose "send to file" and copied the text.
I turned the screen on/off many times during a whole day of usage.
Your ping timeout might be just too aggressive. You have 10s of ping timeout. That is awfully short. Try using something like a minute or two and see if that solves your problem.
I increased the timeout to 15 which is higher than the ping-restart time but this behavior is still happening:
ping 5
ping-restart 10
connect-timeout 15
BTW, using the same OpenVPN config on Linux laptop is working fine and never disconnects on it's own.
a laptop does not typically put apps to sleep. connect-timeout also has nothing to do with ping timeout. Please increase the ping-restart to something like 60 or 120 seconds on server and client and see if that makes a different.
Yes this solved the issue, thanks.