passepartoutvpn / passepartout-app

VPN client for Apple platforms.
https://passepartoutvpn.app
GNU General Public License v3.0
775 stars 119 forks source link

Keep alive on sleep not working on iphone 16.4.1 #299

Closed dmitrydonskih closed 1 year ago

dmitrydonskih commented 1 year ago

Hello. I am using Passepartout 2.1.1 (3468) on IPhone iOS 16.4.1. I connect to my OpenVPN server, then leave iphone, it goes sleep, and after 1-2 minutes VPN is disconnected (as of server-side logs). An option to keep connection alive is enabled in VPN profile.

In iphone VPN log:

01:10:56 - Send ping
01:11:05 - Data: Received ping, do nothing
01:11:07 - Send ping
01:11:15 - Data: Received ping, do nothing
01:11:18 - Send ping
01:12:15 - Data: Received ping, do nothing
01:12:22 - Send ping
01:12:25 - Data: Received ping, do nothing
01:17:22 - Trigger shutdown (error: pingTimeout)

See the gap between 01:12 and 01:17 - at 01:11 iphone has gone sleeping, at 01:13 server said "client gone", at 01:17 I woke it up.

More things worth mentioning: This is not wifi/cellular connectivity issue - iphone still receives messages and calls when sleeping. Wifi "traffic economy" setting is off. Energy saving is off. VPN "on demand" iOS setting for this profile is off. Both OpenVPN server and client have enabled keepalive setting. Client VPN profile does not use default gateway nor DNS from VPN server - it is set up only for SIP PBX.

debug-vpn.txt

keeshux commented 1 year ago

Duplicate of https://github.com/passepartoutvpn/passepartoutkit/issues/36