zaneschepke / wgtunnel

An alternative Android client app for WireGuard VPN
https://zaneschepke.com/wgtunnel-docs
MIT License
928 stars 47 forks source link

[BUG] - reconnect after network change or standby takes about 2minutes #417

Open egabosh opened 4 weeks ago

egabosh commented 4 weeks ago

Describe the bug The reconnect takes around 2 minutes each time the network is changed or the smartphone comes out of sleep mode (display off).

Smartphone (please complete the following information):

To Reproduce Set up Wireguard client. I have tried various ping and auto-tunnel settings. The only thing that helps faster is to deactivate and reactivate the connection in the main window. If the star in dte main window is yellow it takes in any case a longer time until it is reconnecting. The app has allowed background data and the battery settings are unrestricted

Expected behavior Fast detection of whether the network is available and immediate reconnect if not.

If this is not a bug what are the optimal ping interval, Ping restart cooldown,... settings for a fast reconnect.

egabosh commented 3 weeks ago

Ah, looks like some additional android settings help: Settings -> Network and Internet -> VPN -> WG Tunnel -> Continuously active VPN: On. I'll keep an eye for some days on whether the VPN remains “stable” now. Could not find this in the documentation. Maybe it should be added? https://zaneschepke.com/wgtunnel-docs/overview.html

dvalter commented 3 weeks ago

Looks like a new regression in 3.5.3 or 3.5.4, downgrading to 3.5.2 fixes the issue for me

egabosh commented 3 weeks ago

Looks like a new regression in 3.5.3 or 3.5.4, downgrading to 3.5.2 fixes the issue for me

Thanks. Just installed 3.5.2 from F-Droid. I will test here too.

egabosh commented 3 weeks ago

Ah, looks like some additional android settings help: Settings -> Network and Internet -> VPN -> WG Tunnel -> Continuously active VPN: On. I'll keep an eye for some days on whether the VPN remains “stable” now. Could not find this in the documentation. Maybe it should be added? https://zaneschepke.com/wgtunnel-docs/overview.html

Unfortunately only seems to have helped to a limited extent.

egabosh commented 3 weeks ago

Looks like a new regression in 3.5.3 or 3.5.4, downgrading to 3.5.2 fixes the issue for me

Thanks. Just installed 3.5.2 from F-Droid. I will test here too.

Hmm... 3.5.2 seems to crash if I switch from mobile data to WLAN.

zaneschepke commented 1 week ago

Hello! I have a LineageOS test device. I'll look into this one.

egabosh commented 1 week ago

Hello! I have a LineageOS test device. I'll look into this one.

Thank you! I don't use the Kernel module. May this be needed? Now testing 3.6 (from F-Droid).