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

推荐订阅源

量子位
博客园_首页
Google DeepMind News
Google DeepMind News
博客园 - Franky
The GitHub Blog
The GitHub Blog
GbyAI
GbyAI
有赞技术团队
有赞技术团队
Microsoft Azure Blog
Microsoft Azure Blog
G
Google Developers Blog
Recent Announcements
Recent Announcements
A
About on SuperTechFans
博客园 - 【当耐特】
博客园 - 三生石上(FineUI控件)
酷 壳 – CoolShell
酷 壳 – CoolShell
美团技术团队
罗磊的独立博客
IT之家
IT之家
博客园 - 聂微东
Stack Overflow Blog
Stack Overflow Blog
Jina AI
Jina AI
腾讯CDC
P
Proofpoint News Feed
Hugging Face - Blog
Hugging Face - Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com

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 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 How to Set Up ZeroByte and REST Server for Backups with NetBird
NetBird v0.66 - Expose Local Services to the Internet fro...
Written byBrandon Hopkins · 2026-02-23 · via NetBird - Networking Knowledge Hub - RSS Feed

Sharing a local development server, running a quick demo for a teammate, or testing a webhook integration usually means wrestling with tunneling tools, firewall changes, or deploying to a staging environment just so someone else can reach your endpoint.

NetBird v0.66 introduces the command, letting any connected peer expose a local HTTP or HTTPS service to the public internet through the NetBird reverse proxy with a single command. The service is ephemeral, it lives only while the command runs and cleans up automatically when you stop it. No dashboard clicks, no YAML files, no infrastructure changes.

NetBird expose command

How It Works

If you already have NetBird running, exposing a service is one command:


That's it. NetBird handles the rest: provisions a TLS certificate, assigns a public domain, and routes traffic through your NetBird reverse proxy to your local port. You get output like:


The service stays alive as long as the command runs. Press and it's gone, no orphaned configurations, no cleanup required.

Built-In Authentication

Exposing a port to the internet doesn't mean exposing it to everyone. The expose command supports three authentication methods you can mix and match directly from the CLI.

PIN Protection

Add a 6-digit PIN that visitors must enter before accessing the service:


PIN entry page for exposed service

Password Protection

Protect with a password for slightly more flexibility:


SSO User Group Restriction

Lock it down to specific groups from your identity provider:


Users must authenticate through your configured IdP and belong to one of the specified groups. This is ideal for team-internal sharing where you want SSO-level assurance without setting up a permanent service.

Combine Them

All methods can be combined. When multiple are enabled, visitors can choose which authentication method to use:


Authentication selection with PIN, password, and SSO options

Custom Domains and Name Prefixes

By default, exposed services get a randomly generated subdomain. For more readable URLs, you have two options.

Name prefix adds a human-readable prefix to the generated domain:


Custom domain uses a domain you've already configured in your account:


Custom domains must be pre-configured and verified in your NetBird account before they can be used with the expose command. See the Custom Domains documentation for setup instructions.

Ephemeral by Design

Unlike services created through the dashboard, exposed services are intentionally temporary. Here's what that means in practice:

  • Automatic cleanup: Stop the command and the service is immediately removed. No orphaned proxy configurations.
  • Crash recovery: If the client disconnects unexpectedly (crash, network failure, ), the service automatically expires after 90 seconds.
  • Keep-alive: The CLI sends a renewal signal every 30 seconds. The management server maintains a 90-second TTL that resets on each renewal.
  • Rate limited: Each peer can run up to 10 concurrent expose sessions.

This lifecycle model means you never have to worry about forgotten services lingering in your infrastructure. Everything cleans itself up.

Reverse proxy high-level diagram

The above diagram is a high-level overview of how the NetBird reverse proxy functionality works. For more details, see the Built-in Reverse Proxy with Custom Domains product update.

Dashboard vs. CLI: When to Use Which

The expose command doesn't replace dashboard-created services. They serve different purposes:

Dashboard ServicesCLI Expose
LifecyclePersistentEphemeral
Created viaDashboard or API command
Best forProduction services, long-running endpointsDemos, dev sharing, testing, webhooks
Multiple targetsYes (path-based routing)Single local port
Advanced settingsHost headers, redirect rewritingNot available

Use the dashboard for anything that should be always-on. Use for everything temporary.

Enabling Peer Expose

Before peers can use the expose command, an account administrator needs to enable the feature:

  1. Navigate to Settings > Clients in the NetBird dashboard
  2. Scroll to the Peer Expose section
  3. Toggle Enable Peer Expose on
  4. Select at least one peer group that is allowed to expose services
  5. Click Save Changes

Peer Expose settings in the NetBird dashboard

Or via the API:


Only peers belonging to the specified groups can use . Peers outside the allowed groups will receive a error.

Getting Started

  1. Update your NetBird client to v0.66 or later
  2. Make sure your NetBird client is connected ()
  3. Ask your account administrator to enable Peer Expose in Settings > Clients
  4. Run and share the URL

For the full command reference, authentication details, session lifecycle, and troubleshooting, check out the Expose from CLI documentation .