




























A NetBird exit node is just one of your peers that you have promoted to handle all internet-bound traffic for the rest of your network. Once you flip the switch, your laptop, phone, or any other peer routes its through that machine instead of your current IP address. The exit machine masquerades the traffic out of its own public IP, and the rest of the world sees you as that box.
This guide walks through two use-cases that cover most of what individual users want from an exit node: a homelab exit node that makes you "appear at home" while traveling, and a cheap cloud VPS that gives you a one-tap geo-shift the same way a consumer VPN (NordVPN, PIA, etc.) would, except you own the exit.
Prerequisites: You already have a NetBird account or are self-hosting with at least one peer connected (the laptop or phone you'll be testing from), and admin access to the dashboard. NetBird client v0.55.0 or later on the peer if you want to funnel traffic through.
Before the use-cases, here's a quick tour of the use cases people actually reach for an exit node to solve.
The two use cases below are the most relatable for individual users, but the same building blocks scale up to the business cases above. Once you have one exit node configured, adding a second one for a different use case is mostly a matter of repeating the same dashboard steps with different distribution groups.
Read these once. They cause most of the "why isn't this working" moments.
The setup: any always-on Linux machine on your home LAN. Raspberry Pi, NUC, an old ThinkPad in a closet, an LXC on Proxmox, an Ubuntu VM, all fine. The job of this peer is to be your front door when you are not home.
SSH into the home machine and install NetBird with the official script:
If you would rather use APT or DNF directly, the Linux installation docs have the package repos.
For a headless box that should reconnect on reboot, the easiest way to enroll is with a setup key. In the dashboard, go to Setup Keys, create a new one (reusable is fine if you plan to reflash this machine), and on the Pi run:
That registers the peer and brings the tunnel up in one step, no browser dance. Setup keys are documented in Use setup keys to run automated deployments .
Confirm it joined:
You should see a NetBird IP and a Connected state.
In the NetBird dashboard , open the Peers tab.

Click into your home routing peer.

Click Add Exit Node. In the dialog, pick the distribution groups that should route through this exit. All is fine for "every device of mine routes through home." If you only want your phone and laptop, put them in a group like and pick that.

For an "always appear at home" setup, leave Auto Apply enabled. Distributed peers will start using the exit node automatically.

Save. Masquerading is on by default, which is what you want. The home peer NATs your laptop's traffic out of its own LAN IP, and to the rest of the internet you simply look like a normal device on your home network.
The peer view should now show the routing peer flagged as an exit node.

Open Access Control > Policies and confirm there is a policy with your distribution group as the source and the routing peer's group as the destination, allowing at least ICMP. Without this, the route silently does not apply on the client. This is the single biggest "why is this not working" cause, so do not skip it.
By default, your laptop will keep using whatever DNS the local Wi-Fi handed it, even with the tunnel up. That is a leak. To force DNS through the exit node:
DNS in NetBird in general is covered in DNS in NetBird .
Android caveat: disable Private DNS under Settings → Network & Internet → Private DNS. Android otherwise bypasses VPN DNS entirely.
From your laptop, on a network that is not your home network, with NetBird connected:
That should return your home connection's public IP, not the coffee shop's. Cross-check it against what you get with NetBird disconnected.
For a more diagnostic view:
Look for the route showing up under Networks, attached to your home routing peer, with a Selected status. If you do not see it Selected, the most common cause is the missing ICMP policy from step 3.
A DNS sanity check:
The IP returned should be associated with your home ISP, not the local network's resolver. Several "DNS leak test" sites work the same way in a browser if you prefer.
On the laptop or phone, the NetBird tray icon (or the mobile app) has an exit node selector. You can pick a different exit node, or "no exit," and that choice overrides the dashboard for that one device. Handy when you want to flip back to local traffic on a fast Wi-Fi without disconnecting the tunnel.
That covers the first use case. You now have a working "appear at home" setup.
Same mechanics, different machine. Spin up a $5 box in whatever country you want to apparently live in. Hetzner, DigitalOcean, Vultr, OVH, Linode, all work. The smallest tier is fine. Pick Ubuntu or Debian, give it a public IPv4, and SSH in.
This is the part of NetBird that ends up doing roughly what consumer VPNs like NordVPN, Mullvad, or PIA sell. Functionally, you are routing your internet traffic through a server in another country and emerging there. The difference, covered in the comparison further down, is that you own the box.
Same install, same setup-key flow as the first use case. For the VPS, I usually create a setup key with auto-grouping (e.g. group ) so the machine lands in a known group on first boot. That makes the dashboard step easier, and lets you script the enrollment from cloud-init or a Terraform block. See setup keys .
Confirm it is online:
Back in the dashboard, in Peers, click the VPS, and add it as an exit node the same way you did for the home box. A few choices to make differently this time:
Save the route, and add the same Users → Routing Peer ICMP policy if it does not already cover this peer.
Same DNS gotcha as the first use case, but the leak is more visible here. If your traffic exits in Frankfurt but your DNS still resolves through the local Wi-Fi in Toronto, geo-aware sites will see a US/Canada-shaped DNS pattern and either confuse themselves or fail to deliver the geo-blocked content. Your NetBird primary nameserver with match domain from the first use case already covers this if you applied it to the same groups. If you used a different group for the VPS, distribute the nameserver to that group too.
On your laptop, in the NetBird tray, pick the VPS as the exit node. Then:
That should now return the VPS's public IP, in the VPS's country.
Confirm the route is selected and pointing at the VPS peer.
A geo check for good measure: load any "what is my IP" site in a browser and check the city, or run:
The country and city fields should match where you put the VPS, not where you actually are.
This is the payoff. From the NetBird tray on the laptop or the mobile app, you now have:
Pick whichever fits the moment. The client choice overrides whatever the dashboard says for that device, so flipping costs nothing and applies instantly.
If you are looking at this and thinking "isn't this just NordVPN with extra steps," the honest answer is: kind of, with real tradeoffs in both directions.
What you get with a NetBird exit node that you do not get from a consumer VPN: you own the box. You can SSH in and see exactly what is running on it, who else is using it (nobody), and what is being logged (whatever you configure, which can be nothing). You do not share an egress IP with thousands of strangers, which means CAPTCHAs, "are you a robot" walls, and IP bans from sites that have given up on shared VPN ranges mostly disappear. You also get full control over which devices route through which exit and which traffic gets routed at all, all the way down to per-device overrides.
What consumer VPNs have that you do not: dozens of countries, sometimes hundreds of cities, all one tap away. Mullvad gives you about 40 countries today. NordVPN markets 60+. NetBird gives you the building blocks. You bring the boxes. If you genuinely want to flip between 50 country options for streaming, NetBird is not a 1:1 NordVPN replacement, and it is not pretending to be. If you want one or two reliable exits that you fully control and that double as your homelab gateway and your geo-shift, the math leans the other way and a $5 VPS plus a Pi at home covers it.
Same configuration scales out to the business cases at the top of this article. A static egress IP for partner allowlists is the same dashboard flow with a different group. Forcing remote-worker traffic through corporate egress for compliance is the same flow again with the company's existing groups as the distribution groups. Once the pattern clicks, you stop thinking about exit nodes as a "VPN replacement" and start thinking about them as one of the building blocks NetBird gives you for shaping where traffic comes out of your network.
If you want to go deeper, the exit nodes reference covers HA exits and edge cases, and the Network Routes overview is where to look when you want exit nodes that are also doing site routing at the same time.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。