Nebula: A Scalable Overlay Network From Slack
Nebula is a mesh overlay network whose distinguishing idea is that identity and authorisation travel inside the certificate.
Certificates rather than keys
Each host holds a certificate signed by your own certificate authority, carrying its name, IP on the overlay, and groups. Firewall rules reference those groups.
So a host is not authorised by being listed somewhere central: it is authorised by holding a valid certificate, and what it may reach is determined by the groups inside it. Revocation is handled by a blocklist and by certificate expiry.
That model scales differently from WireGuard, where peers are configured explicitly, and from Tailscale, where a coordination service holds the policy.
The firewall is part of the config
firewall:
inbound:
- port: 22
proto: tcp
groups: [admin]
- port: 443
proto: tcp
host: any
Rules live on each host and evaluate against the groups in the peer’s certificate. Our firewall basics and nftables guide cover the host firewall that still sits underneath this; Nebula’s rules apply to the overlay only.
Lighthouses
Hosts find each other through lighthouses, which are ordinary Nebula nodes with a public address that keep a map of who is where. Traffic then goes peer-to-peer, with lighthouses only used for discovery and NAT punching.
You run your own lighthouses. There is no vendor service in the path, which is the main appeal over Tailscale for people who do not want a third party holding coordination.
Where it fits
Nebula suits many hosts with group-based policy, which is the problem Slack built it for. For a handful of machines, WireGuard configured by hand is less machinery. For a laptop fleet wanting SSO and device approval, Tailscale does more.
Our WireGuard versus OpenVPN versus Tailscale comparison covers the category.
Operational caution
You are running a certificate authority. The CA key signs every host’s identity, so losing it is a compromise of the whole network and losing access to it means you cannot add hosts. Keep it offline, per our secrets management guide.
Certificates expire. Plan the renewal before the first batch does.
License
Nebula is released under the MIT License.