netbirdio / netbird

Connect your devices into a single secure private WireGuard®-based mesh network with SSO/MFA and simple access controls.
https://netbird.io
BSD 3-Clause "New" or "Revised" License
9.81k stars 425 forks source link

Self Hosted Version doesnt report client IP (<nil>) #2040

Open R-Nabil opened 1 month ago

R-Nabil commented 1 month ago

I've followed the 5 minutes guide for setting up Netbird. I do get access to the management interface and zitadel, and my clients are able to connect to the management interface.

However, all of them show an IP of .

I suspect that for that reason, I can't create direct P2P connection between my clients (despite appropriate firewall rules)

I've tested the same setup with the cloud version of Netbird, and ofc, IP is displayed and works well

Screenshot 2024-05-23 at 11 48 08 PM

FYI, this is done on Oracle Cloud VPS. And the VM there has the following IP Tables Rules :

Screenshot 2024-05-23 at 11 49 30 PM
mlsmaycon commented 1 month ago

Hello @R-Nabil it seems like you have two issues. For the first one where you have no connection IP set, can you please share the output of the following command?

docker inspect netbirdio/management:latest | grep -i version

And for the peer connectivity, can see if this guide helps you? https://docs.netbird.io/selfhosted/selfhosted-guide#oracle-cloud-infrastructure-oci

Otherwise, can you run the following checks too https://docs.netbird.io/selfhosted/troubleshooting ?

R-Nabil commented 1 month ago

Hey,

Not sure what fixed what, but thank you all is working ! The version was 0.27.7, which i've upgraded to 0.27.9.

Opening th mentioned port seems to have help as well !

Thanks !

May I follow up with some question ? Why is that port necessary when the 51820 port is already opened at the destination client ? Ie my ACL only allows peers to connect to one client (desktop) which has port forward and appropriate firewall rules. I thought COTURN would only be needed in case of NAT or more restrictive firewall)

R-Nabil commented 1 month ago

I'm still playing with netbird, so i've removed it and reinstalled it from scratch... and i'm back with the same issue of IP missing (displayed as ). Connection P2P is fine though.

I've seen few issues in the log about GeoIP. I've noticed download from my VPS were extremely slow. Could a failure of that download trigger issues with the IP detection (GUI only I mean)?

R-Nabil commented 1 month ago

I'm still playing with netbird, so i've removed it and reinstalled it from scratch... and i'm back with the same issue of IP missing (displayed as ). Connection P2P is fine though.

I've seen few issues in the log about GeoIP. I've noticed download from my VPS were extremely slow. Could a failure of that download trigger issues with the IP detection (GUI only I mean)?

Just as an update, waiting for few hours (~10hours), and it just came back without any manual intervention. I strongly believe this is due to the GeoIP database being slow to download, even though i'm not sure why the DB not being available would not display the IP.