Deploy NetBird VPS you control
Build a network with self-hosted NetBird on a VPS. Connect servers and team devices through encrypted tunnels, with access policies managed from your dashboard.
What you can do with self-hosted NetBird on a VPS
NetBird is an open source overlay network that connects machines directly over WireGuard. Connect your team and infrastructure through centrally managed tunnels. NetBird hosting gives you one place to enroll devices and define who can access your servers.
Give your team secure remote access
Keep network management on your infrastructure
Set access rules by role
Connect servers across locations
Stop paying per user
Run it beside your other containers
Choose a VPS plan for NetBird
NetBird asks for at least 1 CPU and 2 GB of RAM, so Start is the floor for a working deployment. Around ten peers with a light policy load fit there. Move to Medium for ten to fifty peers or with activity logging on. Every plan includes the dedicated IPv4 the installer needs for its Let's Encrypt challenge and for peer signalling.
- 40 CountriesFrom$10.19 / 1 month$9.68 with is*smart
- Xeon 2x2.20 GHz CPU
- 2 Gb RAM
- 30GB SSD Drive
- 3 Tb Bandwidth
- 40 CountriesFrom$21.24 / 1 month$20.18 with is*smart
- Xeon 3x2.20 GHz CPU
- 4 Gb RAM
- 40GB SSD Drive
- Unmetered Bandwidth
- 40 CountriesFrom$33.99 / 1 month$32.29 with is*smart
- Xeon 4x2.20 GHz CPU
- 8 Gb RAM
- 50GB SSD Drive
- Unmetered Bandwidth
Boost Your VPS Server Resources
Check out how you can change the configuration of your VPS. You can purchase additional drive space, increase CPU performance, add RAM, and take advantage of additional services without having to switch to a new plan.
How to deploy NetBird on a VPS
Use a fresh Linux VPS with at least 1 CPU and 2 GB RAM. The commands below cover NetBird setup on CentOS 9. For screenshots and maintenance instructions, see our complete guide to installing NetBird on a VPS.
Step 01 — Connect to the server
Your VPS IPv4 address and root credentials are in the is*hosting account and in the setup email. Connect over SSH as root.
ssh root@your-server-ipIf direct root login is disabled, connect with your regular account and run sudo -i first.
Step 02 — Point your domain at the VPS
Open the DNS zone of the domain you plan to use — in your registrar's panel, or wherever its nameservers point, such as Cloudflare or Route 53. Add an A record for the host and a wildcard CNAME beside it, both resolving to the VPS.
A netbird your-server-ipCNAME *.netbird netbird.example.comIf the DNS provider offers a proxy or CDN mode for the record, keep it off. A proxy forwards HTTP traffic only, and NetBird also needs peers to reach the server directly over UDP. Then confirm the record resolves before you continue — propagation takes anywhere from a few minutes to several hours.
dig +short netbird.example.comThe command must return your server's address. The installer runs a Let's Encrypt challenge against this name, and it fails while the domain still points somewhere else.
Step 03 — Open the required ports
NetBird needs TCP 80 and 443 for the dashboard, the management API and certificate issuance, plus UDP 3478 for the STUN service that peers use to negotiate direct tunnels. Check whether firewalld is running:
systemctl status firewalldDocker writes its own iptables rules, and a firewalld reload can drop them and break container networking. If nothing else on the server needs firewalld, disable it:
systemctl disable --now firewalldIf you keep firewalld for other services, open the three ports instead:
firewall-cmd --permanent --add-port=80/tcpfirewall-cmd --permanent --add-port=443/tcpfirewall-cmd --permanent --add-port=3478/udpfirewall-cmd --reloadAllow the same three ports in any upstream filter you use, such as a provider firewall in front of the VPS.
Step 04 — Install Docker and dependencies
The installer needs curl and jq alongside Docker with its Compose plugin. Some CentOS 9 images ship podman-docker, which conflicts with Docker CE, so remove it before installing from Docker's own repository.
dnf remove -y podman-dockerdnf -y install dnf-plugins-core curl jqdnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repodnf install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-pluginsystemctl enable --now dockerdocker --versiondocker compose versionBoth version commands must answer before you go on: the NetBird installer expects Compose v2 as a Docker plugin, not the standalone docker-compose binary.
Step 05 — Run the NetBird installer
Export the domain and run the official script. It asks which reverse proxy to use and which address should receive certificate notifications: the default option deploys Traefik with automatic Let's Encrypt certificates. Skip the optional NetBird proxy service unless you plan to publish internal resources to the internet — it can be enabled later from the dashboard.
export NETBIRD_DOMAIN=netbird.example.comcurl -fsSL https://github.com/netbirdio/netbird/releases/latest/download/getting-started.sh | bashThe script writes docker-compose.yml, config.yaml, and dashboard.env into the current directory, pulls the images, and starts the stack. On a Start VPS plan, the whole NetBird setup took about three minutes. Confirm the three containers are up from that same directory:
docker compose psStep 06 — Create the administrator account and enroll a peer
Open https://netbird.example.com, and the server redirects to its setup page. Fill in email, name, and password to create the first administrator; that route closes permanently afterward. Local accounts run on the embedded Dex identity provider, and external SSO can be added later.
Then create a setup key in the dashboard, install the client on the machine you want to connect, and register it against your own management URL.
curl -fsSL https://pkgs.netbird.io/install.sh | shnetbird up --setup-key YOUR_SETUP_KEY --management-url https://netbird.example.comnetbird statusA healthy peer reports Connected with Relayed: false, which means a direct WireGuard tunnel is up rather than a relayed one.
Step 07 — Restrict access before adding more peers
By default, every peer in the account can reach every other one. Assign devices to groups under Peers, then open Access Control and create the policies you actually need, specifying source group, destination group, ports, and protocols. Disable the default all-to-all rule once your own policies are in place, and test the permitted paths before the network carries anything important.
Common issues
- The installer fails on the certificate step — Let's Encrypt validates over port 80 against your domain, so the A record must resolve to this server first, and TCP 80 and 443 must be reachable from outside. If another web server already holds those ports, don't kill it: rerun the installer and pick the option for an existing reverse proxy instead of the bundled Traefik.
- A device cannot join the network — setup keys expire, and a one-off key works for a single machine only, so generate a fresh one for the next peer. Check that the client was registered with --management-url pointing at your own domain, as in Step 06, and that the device can open the dashboard over HTTPS.
- netbird status reports Relayed: true — the peers could not open a direct tunnel, usually because of a restrictive firewall or carrier-grade NAT, and traffic is going through the relay. Confirm UDP 3478 is reachable on the server. WireGuard encryption still holds through the relay, but latency and bandwidth usage increase.
- Containers lose networking after a firewalld reload — Docker writes its own iptables rules, and firewalld can drop them on reload. Disable firewalld, or add Docker's chain to the trusted zone, as in Step 03.
- A feature is missing from the dashboard — peer approval, IdP user provisioning, traffic event streaming, and EDR integrations are part of the cloud offering; some enterprise features require a commercial license even when self-hosted.