Quickstart Guide

This guide describes how to quickly get started with NetBird and create a secure private network with two connected machines. For this tutorial we will use a Macbook and an EC2 node running Linux on AWS.

Install NetBird

NetBird works on almost any platform including Windows, macOS, Linux, iOS, Android, Docker, routers, and even serverless environments. To get started, install NetBird on your laptop by following the instructions on the installation page:

login-to-netbird

login-to-netbird

Connect Your Laptop

NetBird comes with a Desktop UI application that can be found in the systray. If it hasn't automatically started, look for NetBird in the application list, run it, and click Connect:

login-to-netbird

At this point a browser window pops up starting an interactive SSO login session that will register your laptop. You will be prompt to sign up and confirm your device registration:

login-to-netbird

The NetBird systray icon will turn orange indicating that your laptop was registered in the network:

login-to-netbird

Confirm the Laptop Registration

After the registration is complete, proceed to the NetBird dashboard to confirm that your laptop is in the network. You will see it in the Peers view:

login-to-netbird

Install NetBird on the EC2 Node

Let's install NetBird on the server. In the Peers view, click Add Peer and choose Linux:

login-to-netbird

Copy the installation script and paste in the terminal of your EC2 node:

curl -fsSL https://pkgs.netbird.io/install.sh | sh

Connect the EC2 Node

In the previous steps you used the interactive SSO login flow to register a user device. This flow is a convenient way to register devices with a user interface. However, for servers or containers that don't have a user interface, you can use a setup key to register them.

To create a setup key, go to the Setup Keys section, click Create Setup Key, name your key, and click Create:

login-to-netbird

login-to-netbird

Copy the newly created setup key and use it with the netbird up --setup-key <KEY> command to connect your EC2 node to the network. Run this command in the terminal of your EC2 node:

netbird up --setup-key PASTE_YOUR_KEY_HERE

Validate the Connection

Return to the Peers view in the NetBird dashboard. You should see two machines in the list:

login-to-netbird

To test the connection ping the machines from each other:

On your laptop:

ping ec2-demo-node.netbird.cloud

On the EC2 node:

ping mikhails-macbook-pro.netbird.cloud

Done! You now have a secure peer-to-peer WireGuard connection between two machines.

Next Steps

Try creating a network access policy to control the traffic between the two machines.

Support Us