Skip to content

Instantly share code, notes, and snippets.

@gadzhimari
Created January 7, 2026 16:40
Show Gist options
  • Select an option

  • Save gadzhimari/0947db4e3c10f746aca2011ddf4b32e8 to your computer and use it in GitHub Desktop.

Select an option

Save gadzhimari/0947db4e3c10f746aca2011ddf4b32e8 to your computer and use it in GitHub Desktop.
UFW firewall rules for Netbird
# HTTP/HTTPS
sudo ufw allow 80/tcp comment 'NetBird HTTP'
sudo ufw allow 443/tcp comment 'NetBird HTTPS'
# Signal and TURN services
sudo ufw allow 10000/tcp comment 'NetBird Signal'
sudo ufw allow 3478/udp comment 'NetBird STUN/TURN'
# Relay services
sudo ufw allow 33073/udp comment 'NetBird TURN Relay'
sudo ufw allow 33080/tcp comment 'NetBird Relay'
sudo ufw allow 49152:65535/udp comment 'NetBird Dynamic Relay Range'
# Verify
sudo ufw status numbered
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment