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.51k stars 472 forks source link

Deploy netbird in OpenWrt router > assign IP to netbird0 interface #2268

Open cmonty14 opened 1 month ago

cmonty14 commented 1 month ago

Describe the problem I have installed netbird package on OpenWrt. Starting service netbird works w/o problems. Now I need to setup an interface and firewall rules. For this I'm referring to OpenWrt wiki > Tailscale. Here it's documented to modify /etc/init.d/tailscale by adding procd_append_param command --tun tailscale0.

Is there a similar configuration available for NetBird? Currently my router shows this interface: wt0

Are you using NetBird Cloud? yes

NetBird version 0.24.3

NetBird status -d output: Peers detail: Daemon version: 0.24.3 CLI version: 0.24.3 Management: Connected to https://api.wiretrustee.com:443 Signal: Connected to https://signal.netbird.io:443 FQDN: myopenwrt.netbird.cloud NetBird IP: 100.125.92.171/16 Interface type: Kernel Peers count: 0/0 Connected

wehagy commented 1 month ago

For me to make netbird work on openwrt snapshot:

I guess that's all, I'm assuming you know how to set things up in the netbird interface.

cmonty14 commented 1 month ago

I'm assuming you know how to set things up in the netbird interface.

Could you please share your recommendations for setting up netbird interface?

wehagy commented 1 month ago

Oops, I realized that my previous answer is dubious, when I say netbird interface I mean the web interface, configuring keys, routes, and access groups. The netbird wt0 interface does not need to do anything, just what is described above.

But the most important part is in the firewall where you may or may not be more or less restrictive, I configure it in the way I described above, so I can connect to the VPN just as the VPN can connect to my network, but I configure who can or cannot connect via the netbird web interface.