zerotier / ZeroTierOne

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

Possible bug - Clients behind same public IP use the same port. #2221

Open momothefox opened 9 months ago

momothefox commented 9 months ago

Clients running v1.12.2 on openwrt 23.05.2

If 2 or 3 clients behind the same Public IP

on the controller sometimes it shows that 2 of the clients are reachable via the same port

communication between these 2 clients is not possible while communication works fine for any one of them and the rest of the network

zerotier#1

Controller zerotier version: 1.12.2

Update: One client of them is ZeroTier 1.12.2 on windows and the other two are openwrt

laduke commented 8 months ago

Peers will communicate over the LAN if possible. Check zerotier-cli peers for more peering info. I'm not sure why that wouldn't work. Maybe some kind of "client isolation" is happening on the LAN. And peering via the router/public IP isn't working either. It would be very unlikely for two nodes to randomly select port 2048 at the same time, by the way. They are probably configured to do that in local.conf. Or those two clients are using the same zerotier identities? That work work at all. Generate a new identity on one of them.

momothefox commented 8 months ago

devices are connected on the same switch. and they all share the same internet connection. zerotier#2

i will try to restart the controller service and see might change the ports. as long as they are all using the same port. the connection between them will never happen.

hmmm these devices are fresh installed openwrt and this is the 1st boot.

do you think it is related? i don't see same identities at all.

Check zerotier-cli peers for more peering info.

ok i will do.