Guide: Setup NetBird – The Open-Source Tailscale Alternative for WireGuard Mesh VPN
If you love the ease of Tailscale but want a solution that is 100% open-source, ultra-fast, and features a gorgeous built-in Web UI dashboard, NetBird is the answer. It automatically establishes encrypted peer-to-peer (P2P) WireGuard connections between all your Linux servers, desktops, and mobile devices.
Prerequisites
Step 1: Install NetBird Client on Linux
Run the official, secure one-liner script to add the repository and install the NetBird daemon:
Step 2: Authenticate and Connect the Server
Start the connection process by typing the following command:
The terminal will output a unique authentication URL and a pairing code.
Step 3: Route All Traffic (Enable Exit Node / Routing)
To use your Linux VPS as a secure internet gateway (traditional VPN) for your other devices, you need to enable routing:
1. Enable Linux Kernel Forwarding:
2. Advertise the Route in NetBird Dashboard:
Step 4: Connect Clients and Browse Securely
Download the NetBird app on your phone or laptop, log into your account, and toggle the connection switch. You are now communicating through an optimized P2P WireGuard mesh!
Have you migrated from Tailscale to NetBird yet? Share your performance benchmarks below!
If you love the ease of Tailscale but want a solution that is 100% open-source, ultra-fast, and features a gorgeous built-in Web UI dashboard, NetBird is the answer. It automatically establishes encrypted peer-to-peer (P2P) WireGuard connections between all your Linux servers, desktops, and mobile devices.
Prerequisites
- A Linux server (Ubuntu 22.04 / 24.04 or Debian)
- A free account at NetBird.io (or self-hosted)
- Root or sudo access
Step 1: Install NetBird Client on Linux
Run the official, secure one-liner script to add the repository and install the NetBird daemon:
Code:
curl -fsSL https://pkgs.netbird.io/install.sh | sh
Step 2: Authenticate and Connect the Server
Start the connection process by typing the following command:
Code:
sudo netbird up
- Copy the URL and open it in your web browser.
- Log in and enter the code to securely link your server to your private mesh network.
Step 3: Route All Traffic (Enable Exit Node / Routing)
To use your Linux VPS as a secure internet gateway (traditional VPN) for your other devices, you need to enable routing:
1. Enable Linux Kernel Forwarding:
Code:
echo "net.ipv4.ip_forward=1" | sudo tee -a /etc/sysctl.conf sudo sysctl -p
- Go to your online NetBird Dashboard -> Network Routes.
- Click Add Route.
- Set the Network ID to 0.0.0.0/0 (routes all internet traffic).
- Select your Linux VPS as the routing peer.
Step 4: Connect Clients and Browse Securely
Download the NetBird app on your phone or laptop, log into your account, and toggle the connection switch. You are now communicating through an optimized P2P WireGuard mesh!
Have you migrated from Tailscale to NetBird yet? Share your performance benchmarks below!