Skip to content

NetBird

NetBird is an open-source peer-to-peer mesh VPN. Once configured, you can access your private Sliplane services using their internal hostnames from any device connected to your NetBird network.

  • A NetBird account
  • A Sliplane server with services you want to make private
  1. Log in to NetBird
  2. Go to Setup Keys in the left menu
  3. Create a new setup key or copy an existing one

Create a new service with the following configuration:

SettingValue
Imagedocker.io/netbirdio/netbird:latest
NetworkPrivate (no public access)

Add these environment variables:

VariableValueDescription
NB_SETUP_KEYYour setup key from Step 1Used for automatic registration
NB_HOSTNAMErouting-peerThe internal name for this peer
NB_USE_NETSTACK_MODEtrueRequired - Enables userspace networking
  1. Go to app.netbird.io/networks
  2. Select your network
  3. Click Add Resource
  4. Set the address to *.internal

This allows NetBird to route traffic to all your private Sliplane services.

  1. Install the NetBird client on your local machine
  2. Log in to your NetBird account
  3. Your device will automatically connect to the mesh network

Once connected, you can access any private service using its internal hostname:

Terminal window
ping my-service.internal
curl http://my-database.internal:5432

The traffic goes through the encrypted NetBird tunnel, and your services remain inaccessible from the public internet.

netbird dashboard


Service not reachable:

  • Ensure the NetBird service is running on Sliplane
  • Check that your local device is connected to NetBird
  • Verify the *.internal resource is configured in NetBird

NetBird container not starting:

  • Make sure NB_USE_NETSTACK_MODE is set to true
  • Verify your setup key is valid and not expired