I recently noticed that none of my Netbird connections are P2P, they are always relayed and I wonder how I can fix that. Since no LLM could help me, I try real people insted now.
Here's my setup:
Netbird Client on my NAS (TrueNAS) at home, in a docker container:
services:
netbird:
image: netbirdio/netbird:latest
restart: unless-stopped
cap_add:
- NET_ADMIN
environment:
NB_SETUP_KEY: xxx
NB_MANAGEMENT_URL: https://xxx
volumes:
- ./netbird-client:/var/lib/netbird
network_mode: host
Netbird Clients on laptop (app from Mac App Store), iPhone etc., latest version everywhere
Coordination/relay server on a publicly reachable VPS, with ports 443/tcp+udp, 3478/udp and a few others open in ufw. The coordination server runs in a Docker container (Docker rootless).
Even when my phone is connected to my home wifi (doesn't have client separation) and the Netbird VPN is on, the connection to the NAS is being relayed via the VPS. When Netbird VPN is not on, the phone can reach the NAS just fine.
My home Internet connection is DS-Lite, so IPv4 is behind CGNAT (if I understand that correctly), but there is IPv6. I have no ports open on my home router, although the router has its own WireGuard service running that is reachable via IPv6 from the Internet.
When I am on cellular, I also always have an IPv6 address, and IPv4 is very likely also behind CGNAT.
I much appreciate any help on this!