wireguard.lists.zx2c4.com archive mirror
 help / color / mirror / Atom feed
* iOS push notification issues
@ 2019-03-18 20:54 Anatoli
  0 siblings, 0 replies; only message in thread
From: Anatoli @ 2019-03-18 20:54 UTC (permalink / raw)
  To: wireguard


[-- Attachment #1.1: Type: text/plain, Size: 1792 bytes --]

Hi Jason, all.

I have detected some issues with iOS push notifications with WG while 
the device is in sleep mode (screen turned off).

First of all, in spite of having KeepAlive set to 10-30 seconds, iOS 
devices don't send keepalive packets at all while the screen is turned 
off. The only thing that is more or less always received on the server 
is the handshake, every 170 seconds.

It appears that from time to time WG@iOS is not receiving communications 
from the server – the device doesn't respond to any incoming connections 
(over the tunnel).

Due to this, the incoming push notifications don't reach the device via 
the tunnel: I see on the server incoming connections from WhatsApp and 
Apple servers, the WG@server tries to forward them to the device, on the 
underlying iface I see outgoing WG UDP packets to the client, but no 
reply from it.

The device awakes some moment later (probably for the handshake), WG@iOS 
communicates with WG@server, iOS establishes a connection to the APNS 
and receives the notifications. The effect is that the notifications 
enter with a delay (up to 2-3 min) and some incoming calls are lost 
(i.e. not answered on time due to lack of notification).

Also, sometimes iOS devices are trying to connect to 17.0.0.0/8 network 
(which belongs to Apple and is related to APNS) /outside/ the tunnel. 
After this connection fails (due to the firewall not allowing anything 
outside VPN), the devices start disconnecting from the WiFi.

Any idea why this happens? I know there are issues with iOS devices 
entering sleep, this is a huge problem for OpenVPN Connect app. WG on 
iOS somehow manages to work during sleep, but not always. Most (about 
80%) of the notifications are received correctly during sleep, but some 
fail.

Regards,
Anatoli

[-- Attachment #1.2: Type: text/html, Size: 2457 bytes --]

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-03-20 22:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-18 20:54 iOS push notification issues Anatoli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).