惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
I
InfoQ
Engineering at Meta
Engineering at Meta
D
DataBreaches.Net
L
LangChain Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Recent Announcements
Recent Announcements
GbyAI
GbyAI
爱范儿
爱范儿
Microsoft Security Blog
Microsoft Security Blog
腾讯CDC
美团技术团队
罗磊的独立博客
Microsoft Azure Blog
Microsoft Azure Blog
WordPress大学
WordPress大学
T
The Blog of Author Tim Ferriss
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
雷峰网
雷峰网
M
MIT News - Artificial intelligence
D
Docker
MongoDB | Blog
MongoDB | Blog
F
Fortinet All Blogs
博客园 - 叶小钗

NetBird - Networking Knowledge Hub - RSS Feed

NetBird Is Now on the Vultr Marketplace Native NetBird on the GL.iNet Comet Pro (GL-RM10) NetBird v0.71 - IPv6 Overlay Addressing NetBird Exit Nodes - Appear at Home, or Anywhere Else Reporting Bugs and Requesting Features in NetBird Setup and Use Local AdGuard Home Anywhere with NetBird DNS How to Set Up NetBird on PiKVM for Secure Remote KVM Access NetBird v0.69 - CrowdSec IP Reputation for the Reverse Proxy Cloudflare Mesh vs NetBird vs Tailscale: Performance Compared Self-Hosting Nextcloud with Docker and NetBird Implementing Zero Trust with NetBird NetBird v0.67 - Layer 4 Proxy Support for TCP, UDP, and TLS Solwr Enhances Remote Connectivity with NetBird Self-Hosting NetBird with Authentik Jellyfin Media Server - Self-Host Your Movies, TV, and Music Cloudflare Tunnels vs. NetBird Reverse Proxy INFITX Builds Zero-Touch Kubernetes Networking with NetBird NetBird v0.66 - Expose Local Services to the Internet from the CLI Pangolin vs. NetBird Home Assistant Setup Guide with EASY Remote Access NetBird v0.65 - Built-in Reverse Proxy with Custom Domains Docker for Beginners - Everything You Need to Get Started NetBird for SOC 2 Compliance NetBird v0.63 - Custom DNS Zones for Private Network Resolution Vibecode This in a Weekend and Take 5% of the Company NetBird v0.62 - Built-in Local Users with Optional IdP Integration NetBird v0.61.0 - Granular SSH Access Control and Automatic Updates Top 5 Alternatives to OpenVPN Top 5 Open Source Alternatives to Tailscale Top 5 Alternatives to ZeroTier
NetBird Network Routes and Exit Nodes
Written byDamaso Sanoja · 2024-11-22 · via NetBird - Networking Knowledge Hub - RSS Feed

NetBird's Network Routes is a feature that enables administrators to route traffic to external private networks such as VPCs, LANs, or remote branch networks. This feature is essential for organizations looking to create a unified, secure network environment across various infrastructure components, enhancing overall network efficiency and security.

In this guide, you'll explore the powerful networking capabilities of NetBird through a series of practical scenarios:

  • Creating a standard network route for accessing external networks
  • Configuring a High Availability (HA) network route for enhanced resilience
  • Setting up exit nodes for expanded network flexibility
  • Using NetBird's network route selection feature to resolve overlapping routes

Each section will provide step-by-step instructions and practical insights, equipping you with the knowledge to implement these features in your own network infrastructure. Let's dive in and unlock the full potential of NetBird's Network Routes.

Creating a Standard Network Route

This scenario represents the simplest network route configuration: connecting to an external private network using a single routing peer . Using a standard network route is ideal for non-critical networks or environments where potential downtime is acceptable, as it relies on a single point of connectivity.

To create a network route, navigate to in the left menu and click .

NetBird Network Routes screen

In the tab, choose between two route types:

  • : Use it to specify your external network's private IPv4 address range.
  • : Used to specify domain names for DNS-based routing . This is useful for dynamic IP scenarios.

Next, select an existing peer as the for this network route. Keep in mind that only Linux peers can become routing peers in NetBird. Click when ready.

NetBird Network Routes' Route Tab

In the tab, you can use NetBird to advertise the route to specific groups. While optional, under you can leverage NetBird's access control policies to limit which peer groups are allowed to use the route, ensuring proper security and granular access management within your network. In the example below, the route will be a part of the group that you can use as a destination when creating access policies. Use as sources of the connection.

NetBird Network Routes' Groups Tab

In the tab, enter a descriptive name for your route under .

NetBird Network Routes' Name Tab

Next, in the tab, you can disable if you want to preserve the original source IP of the traffic or keep it enabled for NAT-like behavior. Also, you can set the setting to adjust route priority. A lower metric indicates higher priority.

Additional Settings

Review your settings and click to create the network route.

Since we set up an access control group in the tab, a pop-up window will appear after clicking . Please note if you leave the field empty, this window won't pop up. However, as explained, using access control policies is a best practice because allows you to limit access to the route, enhancing your network's security. Without access policies in place, all peers in the distribution group would gain access to the route.

Access Control Policy

Clicking on will take you to the access control policy creation window, where you can allow access to this route to specified Source groups and limit access only to specified ports. In the example below, only and groups can access resources in the network behind the route on port 443.

Create Access Control Policy

NetBird lets you strike a balance between security and convenience. While it may require additional configuration, the enhanced control over your network access significantly outweighs the minimal extra effort. It empowers you to implement the principle of least privilege, ensuring that only authorized peers can access specific routes.

Configuring a Highly Available (HA) Network Route

Highly Available(HA) Network Routes provide enhanced reliability and fault tolerance for critical network connections. By setting up a network route with multiple routing peers, you ensure continuous connectivity even if one peer fails, making HA routes ideal for production environments, financial systems, mission-critical databases, vital business applications or any scenario where network downtime could significantly impact operations.

To create a HA network route in NetBird, you can either add multiple routing peers during the initial route creation using the tab or enhance an existing route by adding more peers. Let's implement the latter.

From the screen, locate your recently created route. Click the button next to the route to add another peer to the route.

NetBird Routes Add Peer

Under select a routing peer. Notice that you can also specify and . Click when ready.

NetBird New Routing Peer

Once you add another peer to the network route, it becomes highly-available as indicated in the column. You can repeat the procedure to add as many routing peers as required.

NetBird HA Route

This approach adds fault tolerance, as NetBird can automatically switch to an alternative peer if one becomes unavailable.

Remember that for optimal HA performance, it's recommended to distribute routing peers across different physical or virtual locations to mitigate the risk of simultaneous failures.

Setting Up NetBird Exit Nodes

By default, NetBird peers use a route specified with the network address , which acts as a catch-all for internet-bound traffic from your devices. This default configuration allows peers to access the internet directly through their local connections.

However, you can create a special type of network route to direct all outgoing internet traffic from other peers to a designated peer called exit node . This approach is particularly useful when your organization wants to add a layer of protection to the private network in scenarios where installing NetBird on each machine is not viable.

Exit nodes provide several benefits:

  • Centralized internet access point for easier management and monitoring
  • Ability to apply network-wide policies or filtering
  • Enhanced privacy by masking the original source of internet traffic

To designate a peer as an exit node:

Navigate to in the left menu and click on the desired peer. Under , click the button.

Configure Peer as Exit Node

Then, in the tab, configure:

  • : Select the groups for which you want to route all internet traffic through this exit node. This determines which peers in your network will use this exit node for their internet access.
  • : Choose the groups that are allowed to use this exit node. This feature allows you to restrict access to the exit node, enhancing security by controlling which peers can utilize this route

Configure Peer as Exit Node

Next, enter a descriptive name for the exit node in the tab, and in the tab, set the value (lower values indicate higher priority). Review your settings and click to finalize the exit node configuration.

Note that a peer in NetBird can serve multiple functions simultaneously, enhancing network flexibility and resource utilization. Specifically, you can configure a peer already being used for a network route to also function as an exit node.

Peer Dual Role

Aside from the peer details view, you can also check the dual role of this peer in the dashboard.

Network Routes

NetBird's Route Selection Feature

NetBird's route selection feature offers a solution for organizations using network routes with overlapping IP ranges. This feature allows users to explicitly choose which routes to apply on the client side, ensuring that peers connect to the correct private network without conflicts.

For instance, consider a company with different office locations that use identical private IP ranges.

Overlapping Network Routes

NetBird's route selection feature enables precise routing, maintaining seamless connectivity across your distributed network infrastructure.

There are two ways to use the route selection in NetBird:

  • Using the Command Line Interface (CLI):

You can list available routes using the command :


By default, all routes are selected. To choose a specific route, you can use the command :


Verify the changes running again:


  • Using the GUI:

Open the NetBird system tray application and navigate to the menu. Select or deselect routes using checkboxes.

GUI Network Routes

Alternatively, you can click the tab to filter the list:

GUIOverlapping Network Routes

For more information and additional options, read Resolve overlapping routes with the route selection feature .