zerotier / ZeroTierOne

A Smart Ethernet Switch for Earth
https://zerotier.com
Other
14.5k stars 1.69k forks source link

iphone wifi no upnp/nat-pmp requests no zt #1689

Closed MarkoPaasila closed 2 years ago

MarkoPaasila commented 2 years ago

Zerotieron iphone works perfectly over mobile/LTE, but not over wifi. Zerotier works as usual on computers in the same LAN both on ethernet and wifi. Only iphone doesn't work.

I reinstalled and reconfigured the zerotier one app on iphone.

My router runs openwrt 21.02 and miniupnpd. I have enabled both UPnP and NAT-PMP. Port forwards from other devices are shown, and the requests show up in the syslog. No request from iphone, nor any active port redirects.

zerotier-cli peers shows all other peers, just not the iphone when it's connected via wifi. Not direct, nor relayed.

iphone with ios 15.5 zerotier one version 1.8.10

laduke commented 2 years ago

Hello. It's possible/likely the ios app doesn't have an upnp client. The good news is upnp in not required to make p2p connections. Just outgoing udp and incoming/established udp. You might be able to do like -A OUTPUT -p udp --sport 9993 -j ACCEPT instead of all outgoing udp? I'm not able to test at the moment.

MarkoPaasila commented 2 years ago

My problem turned out to be an additional VPN which I didn't know of on my iphone. For some reason only one is active at a time and the other VPN always takes precedence. Selecting ZeroTier - not from the app, but from iphone Settings -> VPN - immediately makes ZeroTier work.