netbirdio / netbird

Connect your devices into a secure WireGuard®-based overlay network with SSO, MFA and granular access controls.
https://netbird.io
BSD 3-Clause "New" or "Revised" License
10.41k stars 466 forks source link

Connections between peers on 3 Windows LANs #1417

Open jscheeren opened 8 months ago

jscheeren commented 8 months ago

G'day,

  1. I have 6 PCs spread over 3 LANs that I have set up with NetBird. I am doing this because one of the LANs is set behind a CGnat and I want to transfer files to CGnat PC's. In attempts to discover the reason for only some peers being able to connect using NetBird IP address, I noticed that using Control Panel to view properties of NetBird adaptors, that 3 PCs had all blank entries for "Use Following IP Address" and "Use following DNS Server addresses" and three had a 100.x.x.x value for the DNS IP. I did a "network reset" on each PC with the value for the DNS server and afterwards they all now have zero entries in DNS, but same peers still could not connect to others.
  2. With Windows 11 Network and Internet Settings the adaptors for NetBird (wt0) are not visible, so had to use Control Panel, where it was noticed that the NetBird adaptor network profile was "Public". Suspecting this might be the problem, I wanted to set it to "Private" but could not see how to do that in Control Panel, and of course could not do it in the Network and Internet Settings, as it was not visible. Should the NetBird adaptor be visible and should it be set to private, and if so, how?

Thank you, Jan

jscheeren commented 8 months ago

If it is indeed better to have NetBird wt0 network adaptor set to private, then this command does work.

To change NetBird to private network adaptor in Windows 11 - Start, search powershell and then right click that to execute as administrator. Then copy complete following text to command line:

Get-NetConnectionProfile | Where-Object "InterfaceAlias" -like "wt0*" | Set-NetConnectionProfile -NetworkCategory Private