Installation
- Install Script (Recommended)
- Homebrew
- Manual PKG Installer
The easiest way to install NetBird on macOS:This script:
- Downloads the official NetBird
.pkginstaller - Installs both the CLI and menu bar app
- Sets up the NetBird daemon service
- Works on both Intel (amd64) and Apple Silicon (arm64) Macs
Initial Setup
After installation, you can connect to NetBird using either the menu bar app or the command line.Using the Menu Bar App
Launch NetBird UI
- Open NetBird UI from your Applications folder
- The NetBird icon will appear in your menu bar
Connect to your network
- Click the NetBird icon in the menu bar
- Click Connect
- Sign in with your SSO provider or use a setup key
Using the Command Line
Service Management
Manage the NetBird daemon service:Configuration
Config File Location
The NetBird configuration is stored at:Log Files
Logs are written to:Environment Variables
Configure NetBird using environment variables with theNB_ prefix:
| Variable | Description | Example |
|---|---|---|
NB_MANAGEMENT_URL | Management server URL | https://api.netbird.io |
NB_LOG_LEVEL | Logging level | info, debug, error |
NB_LOG_FILE | Log file path | /var/log/netbird/client.log |
NB_INTERFACE_NAME | WireGuard interface name | utun100 |
NB_WIREGUARD_PORT | WireGuard listening port | 51820 |
NB_CONFIG | Config file path | /etc/netbird/config.json |
Command-Line Options
Key CLI flags fornetbird up:
On macOS, the WireGuard interface name must start with the
utun prefix (e.g., utun100, utun199). The default is determined by macOS automatically.macOS-Specific Features
Network Monitor
NetBird on macOS has network monitoring enabled by default to handle network changes (Wi-Fi switching, VPN connections, etc.). To disable:System Preferences Integration
After installation, you may need to grant permissions:- System Preferences → Privacy & Security
- Allow NetBird to create network connections
- Grant Full Disk Access if requested (for logging)
Menu Bar App Location
The NetBird UI is installed to:Advanced Configuration
Running in Foreground Mode
For debugging or testing:Custom External IP Mapping
For complex network setups:Disable Auto-Connect
Prevent NetBird from connecting automatically when the service starts:netbird up each time.
Troubleshooting
Check Connection Status
Common Issues
Menu bar app won't start
Menu bar app won't start
Interface name errors
Interface name errors
On macOS, interface names must use the
utun prefix:Permission denied errors
Permission denied errors
Grant necessary permissions in System Preferences:
- Go to System Preferences → Privacy & Security
- Allow NetBird in Full Disk Access (if needed)
- Allow NetBird to create network connections
Connection timeout
Connection timeout
Check your firewall settings:Enable debug logging:
Already installed warning
Already installed warning
If you see “NetBird is already installed,” first uninstall: