List All Routes
Returns a list of all configured routes.Unique route identifier
Route network identifier for grouping HA routes
Network type:
IPv4, IPv6, or domainRoute description
Whether the route is active
Peer ID acting as the routing peer
Peer group IDs for HA routing (alternative to
peer)Network range in CIDR format (conflicts with
domains)Domain list to dynamically resolve (max 32, conflicts with
network)Route priority (lower number = higher priority, range: 1-9999)
Whether to masquerade (NAT) traffic to this route
Group IDs that can use this route
Keep route after domain resolution fails
Group IDs with access control permissions
Get a Route
Retrieve detailed information about a specific route.The unique identifier of the route
Example
Create a Route
Create a new network route.Route description
Network identifier for grouping HA routes (1-40 characters)
Whether the route is active
Peer ID to use as routing peer (cannot be used with
peer_groups)Peer group IDs for HA routing (cannot be used with
peer)Network range in CIDR format (cannot be used with
domains)List of domains to resolve (max 32, cannot be used with
network)Route priority (1-9999, lower = higher priority)
Enable NAT for traffic to this route
Group IDs that can use this route
Keep route after domain resolution fails
Group IDs with access control permissions
Skip auto-application for exit node routes (0.0.0.0/0)
Update a Route
Update an existing route configuration.The unique identifier of the route
Example
Delete a Route
Remove a route from the network.The unique identifier of the route
Example
Route Types
Subnet Routes
Route traffic to specific IP subnets:- Access cloud VPCs
- Connect to office LANs
- Reach private data centers
Domain Routes
Dynamically route traffic to resolved domains:- Route to dynamic cloud services
- Access internal services by domain
- Support wildcard domain routing
Domain routes are resolved periodically. Set
keep_route: true to maintain connectivity even if resolution temporarily fails.Exit Nodes
Route all internet traffic through a peer:- Secure public WiFi connections
- Access region-specific content
- Centralize internet egress
High Availability Routing
Use multiple routing peers for redundancy:Route Priority
Control route selection with metrics:High Priority
metric: 1-100Preferred routesMedium Priority
metric: 101-1000Normal routesLow Priority
metric: 1001-9999Backup/exit nodesMasquerading (NAT)
Enable masquerading to NAT traffic:- Routing peer doesn’t have routes back to NetBird network
- Acting as an exit node
- Accessing external networks that don’t know about NetBird IPs
Access Control
Limit which groups can use the route:groups: Who can use the routeaccess_control_groups: Who can manage the route
Best Practices
Use specific metrics - Assign appropriate priorities based on route importance
Enable masquerading - Always enable for exit nodes and external networks
Group related routes - Use
network_id to organize related routesUse HA groups - Deploy multiple routing peers for critical routes
Monitor domain resolution - Check domain routes resolve correctly
Limit access - Only give route access to groups that need it