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.

CLIENT (Browser) TLS ClientHello SNI: <share>.e2ee.nfltr.page Encrypted HTTPS NFLTR SERVER Read SNI → route to agent Cannot decrypt (no key) AGENT (--e2ee) TLS termination Your cert / ACME cert → localhost:port Opaque TLS bytes — server cannot read payload

Supported Commands

CommandDefault 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 --forwardTCP tunnel; with --allow-group, end-to-end TLS in organisation mode
nfltr cat serve ssh --sshEmbedded SSH: SSH's own encryption through the relay; ssh checks the organisation's host certificate
nfltr share --followLog tail viewer, relay-terminated like any share URL
nfltr share --everyLive command output, relay-terminated like any share URL
nfltr shareEphemeral content share; the relay ends the share URL's TLS unless the agent holds a certificate for its host name
nfltr cat pipe, cat cpWith --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

TrackWhat's E2EEWhat the server sees
TLS PassthroughTraffic on a host name the agent holds the certificate for (agent terminates TLS)SNI hostname only — opaque TLS bytes
Organisation sessionsEvery byte of the session: messages, files, command input and outputWhich machines connect, the service, timing and sizes
A2A MessagingPayload 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.

Trust Model

NFLTR uses a trust-the-server-for-routing-only model:

  1. Agents authenticate to the server with their machine certificate
  2. The server performs routing: SNI-based for TLS passthrough, service routing for organisation sessions
  3. Subsequent data is encrypted end-to-end — the server relays opaque bytes it cannot decrypt (A2A is always keyed; see above)
💡 What the relay can read

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 →