Frequently Asked Questions
What is Lemonade-Nexus?
A self-hosted userspace mesh VPN with encrypted peer-to-peer connections, cryptographic identity, and an attestation-based security protocol. You run the servers; the software provides the mesh, discovery, addressing, certificates, and the security protocol.
Do I need to run my own server?
Yes, at least one. A packaged install plus nexus-bootstrap gets a Genesis
server configured in a few commands; see Getting
Started.
Is there a central authority?
There is a root management key and a Genesis bootstrap anchor, both operator-pinned. The root key signs server admission certificates, and the Genesis anchor establishes the network identity. Neither is a live control plane: the root key does not grant Tier 1 authority, and Genesis’s unilateral security authority ends at Epoch 1 activation. After that, authority is epoch-scoped and follows finalized consensus state. See Security.
How does the two-tier model work?
- Tier 2 servers hold a valid network-bound certificate and act as pure proxies of end-to-end encrypted data and connections (relay, STUN, discovery DNS). They hold no permission tree and serve no tree request or client session.
- Tier 1 servers are the epoch committee: verified platform evidence and mesh observations establish eligibility, and finalized eligibility, plan, readiness, and handoff establish the role. Tier 1 members run HotStuff consensus, participate in the per-epoch FROST key generation, and hold and serve the permission tree. Clients send every tree read and write to a Tier 1 server they verify from the network’s Genesis key.
Tier 1 is an epoch-scoped role, not a permanent status.
Can I run it without TEE hardware?
Yes. Servers without qualifying platform evidence operate as Tier 2: they relay and proxy encrypted traffic and participate in the mesh. They do not qualify for Tier 1, so they hold no permission tree. A network needs Tier 1 servers before clients can join.
Important: a node qualifies for Tier 1 only when it runs a signed release for its network. The signed release approval supplies the launch measurements, PCR 8 and 9, and the binary hashes. Without a verified approval, no node can qualify. This is a fail-closed rule, not a configuration problem. See Attestation and Security — Current Limitations.
Which attestation platforms are supported?
The Tier 1 profile is AMD SEV-SNP with a COCONUT-SVSM vTPM
(snp-svsm-vtpm, with IMA runtime measurements). An HCL/vTPM verifier
(snp-hcl-vtpm) also exists but is not the Tier 1 profile. The direct-boot
provider is declared but refuses evidence (ProviderUnsupported), and there
is no SGX, TDX, or Secure Enclave provider in this repository. See the
provider matrix.
How does NAT traversal work?
- STUN (UDP
3478) discovers each peer’s reflexive address. - The routing API (
/api/routing/*) coordinates candidate exchange and verifies candidates against the observed control-connection source. - Both sides send BoringTun dataplane handshakes to each other’s
discovered endpoints on the shared mesh UDP port
51940— there is no separate hole-punch port. - If a direct path cannot be formed, the coordinator issues a relay ticket
and traffic flows through a relay server (UDP
9103). Relays see only ciphertext.
How are IP addresses allocated?
- Clients: the committed join operation assigns each endpoint an address
from the tree, in
10.65.0.0–10.127.255.254. - Servers: a backbone address that is deterministic from the server’s
identity key, in
172.16.0.0/22, with pubkey-based conflict resolution. The server’s tunnel address, where clients reach its private API, has the same offset in10.64.252.0/22.
Details in IP Ranges. Note that automatic reclamation of departed servers’ backbone IPs is not yet wired.
What happens if a server goes down?
- Clients of that server lose their tunnel; the client SDK re-discovers via DNS and switches to the next best server (latency plus load scoring), re-joining with the preserved identity.
- Other servers continue operating.
- The downed server’s backbone IP is not automatically reclaimed in the current revision (see IP Ranges — Staleness and Reclamation).
How do I add a new server?
Use server onboarding against an existing server — never initialize a second Genesis for the same network:
- Obtain the network’s
root_pubkeyout of band. - Run
lemonade-nexus --onboard-server <fqdn>:9100 --root-pubkey <hex>as the service user. - Approve the pending request on the existing server (private API) or mint a single-use enrollment token.
- Set
release_signing_pubkeyon the new server, then start the service.
The full flow, including what onboarding persists and what you configure separately, is in Getting Started — Join an existing network.
What is stored on disk?
File-backed signed JSON records for identity, tree, IPAM, and the durable security stores, plus a SQLite database for the application ACL store. There is no external database service. See Architecture — Storage.
Is it free / open source?
The repository is released under the MIT License.
What platforms are supported?
- Server: Linux is the primary target (packaged install, systemd, evidence helper). macOS builds run in CI. Windows build definitions exist but the Windows CI jobs are disabled, so Windows is not a qualified platform yet.
- Client: macOS, Windows, and Linux desktop builds run in CI. iOS and
Android use the Flutter plugin
packages/lemonade_nexus_sdk, whose native libraries are released asmobile-sdk-v*archives. - SDK: C++ and C ABI, consumed by the Flutter plugin, the Flutter client, and embedders.
Tier 1 attestation support and platform build support are separate questions; see Building — Windows Status and Attestation.
How is this different from Tailscale / ZeroTier / Nebula?
| Lemonade-Nexus | Tailscale | ZeroTier | Nebula | |
|---|---|---|---|---|
| Coordination | Self-hosted servers you operate | SaaS coordination server | Controller (SaaS or self-hosted) | Self-hosted static config |
| Transport | Userspace BoringTun dataplane + userspace netstack | WireGuard (kernel) | Custom (ZT) | Custom (Nebula) |
| Server authority | Epoch committee: attestation + consensus + threshold signing | Company-operated | Controller | Static root CA |
| DNS | Built-in authoritative DNS | MagicDNS | None | None |
| Hardware attestation | SEV-SNP with a COCONUT-SVSM vTPM, release values from a signed approval | No | No | No |
The comparison is structural, not a performance claim.