End-to-End Encryption Security
NFLTR has two tracks that keep TLS off the relay: TLS passthrough, where the relay routes a TLS connection by its SNI host name to a machine that holds the certificate for that name, and organisation sessions between your machines. The /browse/ address and share links of nfltr http are relay-terminated unless the agent holds a certificate for the share's name; the agent's banner says which.
Tutorials: End-to-end encryption keys · Reach hosts on a private LAN
Encrypted Tracks
🔐 TLS Passthrough
With a certificate for the share's host name (--e2ee-cert, --acme-domain), or with --mode passthrough to your own HTTPS service, TLS ends on your machine. The server routes by SNI hostname without decrypting and sees only the TLS ClientHello. A browser cannot tell that certificate from one a lying relay presents for the same name, so against such a relay this is not end to end.
Protocols: HTTPS, gRPCS, any TLS-wrapped protocol
Cert options: user-provided cert/key, or ACME/Let's Encrypt
✦ Organisation sessions (nfltr cat)
A service served with --allow-group takes only end-to-end TLS sessions between two machines of your organisation, each proving its name with a certificate from your organisation root. The relay forwards TLS records it cannot read and can issue no certificate.
Features: Messages (cat pipe), file transfer (cat cp), fixed commands (cat serve --exec), TCP forwarding, SSH
Access: by group, with revocation that reaches every machine
TLS Passthrough for Tunnel Commands
Without a certificate for the host name a visitor uses, the relay ends the visitor's TLS. --mode inspectable (or --e2ee=false) also lets the agent read each request, which --route, --record and --intercept need.
Supported Commands
| Command | Default behavior |
|---|---|
nfltr http | /browse/ and a share URL are relay-terminated; a share URL's TLS ends on the agent when it holds a certificate for the share's host name (--e2ee-cert, --acme-domain) or with --mode passthrough |
nfltr cat serve --forward | TCP tunnel; with --allow-group, end-to-end TLS in organisation mode |
nfltr cat serve ssh --ssh | Embedded SSH: SSH's own encryption through the relay; ssh checks the organisation's host certificate |
nfltr share --follow | Log tail viewer, relay-terminated like any share URL |
nfltr share --every | Live command output, relay-terminated like any share URL |
nfltr share | Ephemeral content share; the relay ends the share URL's TLS unless the agent holds a certificate for its host name |
nfltr cat pipe, cat cp | With --allow-group on the service, end-to-end TLS in organisation mode; cat cp and cat serve --exec take no other |
Certificate Options
# Default: the relay ends the TLS of /browse/ and the share URL
nfltr http 3000
# User-provided certificate and key
nfltr http 3000 --e2ee-cert server.crt --e2ee-key server.key
# A share URL: nfltr.xyz issues agents no certificate for its host name,
# so the relay ends its TLS and can read it
nfltr http 3000 --share
# Explicit inspectable mode for debugging
nfltr http 3000 --e2ee=false
Organisation Sessions
Each machine of your organisation holds a short-lived certificate for its name and groups, issued under a root you hold. A client opens TLS straight to the serving machine through the relay; the service admits the groups it names (--allow-group) and the client checks the service's machine name. The relay sees which machines connect, the service, and sizes and timing, never the bytes. More in Organisations.
Cryptography Summary
🔐 AES-256-GCM
A2A messaging uses AES-256-GCM authenticated encryption; TLS passthrough and organisation sessions use TLS. Both provide confidentiality and integrity.
🔑 Per-Session Keys
Fresh keys derived for every session — X25519 ECDH for A2A (one handshake per pair of ends, kept up to 24 hours, with its own keys for each call) and TLS key exchange for organisation sessions. Compromising one session doesn't affect others.
🤝 Mutual Certificates
Organisation sessions authenticate both machines with certificates from your organisation root before any data flows. The relay holds no such certificate, so it cannot sit in the middle.
🌐 Direct Paths
An organisation session can leave the relay and run straight between the two machines over UDP, under the same end-to-end TLS, when both ends ask for it, and falls back to the relay when that path dies.
🚫 No Server Session Keys
On TLS passthrough and organisation sessions, the server never possesses session keys or plaintext data. TLS passthrough reads only SNI; organisation sessions reach it as TLS records. A2A messaging is covered below, with its limits.
What's Encrypted
| Track | What's E2EE | What the server sees |
|---|---|---|
| TLS Passthrough | Traffic on a host name the agent holds the certificate for (agent terminates TLS) | SNI hostname only — opaque TLS bytes |
| Organisation sessions | Every byte of the session: messages, files, command input and output | Which machines connect, the service, timing and sizes |
| A2A Messaging | Payload bytes (always; keyed with your machines' own keys) | Routing headers (agent IDs), timing and sizes — payload is ciphertext |
A2A messaging: what it protects, and what it does not
Agent-to-agent frames are always end to end encrypted with a key only your machines hold: a Noise handshake with fresh X25519 keys mixed with that key, then AES-256-GCM. There is no unkeyed mode.
- Any relay, watching or active, sees ciphertext: without the key it cannot complete a handshake, so it cannot sit in the middle, and it cannot replay, reorder or reroute frames.
- Where the keys come from: each machine's own key is derived from a root key;
nfltr org joinwrites it there, sealed to that machine's key, when the issuer's machine holds the root (nfltr-orch makes one; it is not publicly available). A key never passes through the relay. - No downgrade: an end refuses unencrypted and unkeyed requests, the relay's own included; a command without a key refuses to start and names the fix.
- Not covered: metadata: agent and machine ids, labels, timing and message sizes.
Trust Model
NFLTR uses a trust-the-server-for-routing-only model:
- Agents authenticate to the server with their machine certificate
- The server performs routing: SNI-based for TLS passthrough, service routing for organisation sessions
- Subsequent data is encrypted end-to-end — the server relays opaque bytes it cannot decrypt (A2A is always keyed; see above)
nfltr http prints it per path. The relay can read /browse/ and share links unless the agent holds the share's certificate; then, against a relay that lies, only a client that compares the agent's fingerprint out of band keeps the relay out. Organisation sessions (nfltr cat with --allow-group) are end to end against any relay. If a CDN or reverse proxy terminates TLS in front of the relay, that edge is outside this guarantee.
Private by design
Two tracks - TLS passthrough on a host name your machine holds the certificate for, and organisation sessions end to end.
Install the CLI Agent-to-Agent →