- Category
- Cybersecurity
- Rank
- No. 772Tools index
- Pricing
- Open Source
- Type
- TOOL
- Use case
- Deployment & Operations · Security & Identity
- Builder
- @mittsh
- GitHub
- 18.6k stars
- Latest release
- v1.12.0
- Date
About
Nebula is an overlay networking tool from Slack that joins hosts sitting on separate networks into a single encrypted network, so machines can address each other directly no matter where they run. The repository is Go source with its own certificate, handshake, and firewall layers rather than a wrapper around an existing VPN, which is what lets it stay a self-contained binary you operate yourself.
What it does
Nebula gives every machine you run a private address on one virtual network, whether it sits in an office, a data center or a phone. Each host carries a certificate, signed by a certificate authority you control, that states its address, name and groups. Small always-reachable nodes called lighthouses tell peers where to find each other, then peers talk directly, punching through NAT (network address translation) when possible. Traffic is encrypted using the Noise protocol framework, and a firewall on each host filters by those certificate groups.
Why it's ranked here
Slack built it and holds the copyright, the license is MIT, and it ships through Arch, Fedora, Debian, Alpine and Homebrew packages plus an official Docker image. The design claims hold up in the code: certificates, handshakes and firewall rules are implemented inside the repository rather than borrowed from an existing VPN, and there is a FIPS 140-3 build target for regulated deployments. Security reports route to Slack's HackerOne bug bounty. For a self-hosted mesh network with identity built in, that is a strong combination of provenance, reach and auditability.
What's good
Identity and access live in one place. The certificate that proves who a host is also lists its groups, and firewall rules match on those groups, so moving a server between clouds does not mean rewriting address-based rules. Rules can also be pinned to a specific certificate authority by name or fingerprint. The handshake code drops malformed first messages before doing any cryptographic work and caps queued packets per pending connection at 100. Defaults lean safe: traffic that matches no rule is dropped in both directions, and tracked TCP connections time out after 12 minutes, UDP after 3.
Tradeoffs
You run the trust infrastructure yourself. The certificate authority key is the most sensitive file in the system and must never reach individual hosts, and authorities expire after one year by default, with host certificates expiring one second before them. Rotation is a chore you have to schedule. At least one lighthouse with a fixed public address is effectively required. The older certificate format is deprecated and handles IPv4 only, and the BoringCrypto build is deprecated in favour of native FIPS mode. Source comments flag unfinished work, including no limit yet on the number of tracked connections.
How to use it well
It fits a team that wants a private mesh across clouds, offices and laptops and is willing to own the certificate authority. Create the authority on a machine you trust, issue host certificates with shorter lifetimes than the default, and put a lighthouse on a cheap cloud instance with UDP port 4242 open. Design your groups first, since firewall rules key off them. The daemon's test flag checks a config before you roll it out. Teams that would rather not run the authority and lighthouses are pointed to a managed service from Defined Networking.
Technical notes+
cmd/nebula/main.go is the daemon entry point: it dispatches nebula ctl subcommands, parses -config, -test, -version and -help, loads and applies config with a reload callback for logging, calls nebula.Main, and wires a local API socket that is torn down before exit. firewall.go builds separate inbound and outbound FirewallTable structs keyed by protocol and port, with a documented evaluation order of proto, port, CA SHA or CA name, local CIDR, then group, host or remote CIDR; prefix matching uses the gaissmai/bart table, conntrack expiry runs on a timer wheel with config defaults of 12m TCP, 3m UDP and 10m otherwise, and inbound_action and outbound_action default to drop. A TODO notes missing max tracked connections handling. handshake_manager.go retries every 100ms up to 10 times with linear backoff, accepts only the IX PSK0 handshake subtype, rejects stage-1 packets carrying a nonzero RemoteIndex, buffers up to 100 packets per pending handshake, and tracks ECMP gateway liveness so a flow waits for its hashed gateway instead of being split. cert/cert.go defines the Certificate interface spanning Version1 (protobuf, IPv4 only, deprecated per cert/README.md) and Version2 (ASN.1 DER, IPv4 and IPv6), with Curve25519 and P256 support and an alternate P256 fingerprint for blocklist checks. go.mod pulls in flynn/noise, golang.org/x/crypto, the wintun and wireguard-windows modules for the Windows TUN device, gvisor, and Prometheus metrics.
Observed
- License
- MIT, copyright Slack Technologies
- Language
- Go
- Interfaces
- CLI daemon (nebula) plus a separate certificate tool (nebula-cert)
- Platforms
- Linux, Windows, macOS and FreeBSD; iOS and Android through a separate mobile app
- Packaging
- Arch, Fedora, Debian and Alpine packages, Homebrew formula, Docker image, release binaries
- Cryptography
- Noise Protocol Framework; ECDH with AES-256-GCM by default; Curve25519 or NIST P256
- Compliance build
- Make targets for Go's FIPS 140-3 mode; BoringCrypto build marked deprecated
- Security reporting
- HackerOne bug bounty and GitHub security advisories, per SECURITY.md
Read from README.md, go.mod, LICENSE, SECURITY.md, firewall.go, handshake_manager.go, cert/README.md, cert/cert.go, cmd/nebula/main.go.
Similar tools
Tags
Tech Stack
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.