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: 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 pipe, cp, forward, ssh)
A service served with --e2ee 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 (pipe), file transfer (cp), fixed commands (serve --exec), TCP forwarding, SSH
Access: by group, machine or person. Revocation takes effect in seconds when the update is delivered, within 10 minutes if a relay withholds it, and within 1 hour if a relay replays an older status (clients from v2.1.104; earlier clients up to 24 hours). Delivered by the relay's push it measured about 11 s on a 20-machine fleet, publication included.
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 serve --forward | TCP tunnel; with --e2ee, end-to-end TLS in organisation mode |
nfltr serve ssh --ssh | Embedded SSH in organisation mode: the access rules admit the client, SSH runs inside; ssh checks the organisation's host certificate |
nfltr pipe, cp | With --e2ee on the service, end-to-end TLS in organisation mode; cp and 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 clients your organisation's access rules let use it (nfltr access allow, signed by your root) 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
🔐 TLS
TLS passthrough and organisation sessions use TLS, which provides confidentiality and integrity.
🔑 Per-Session Keys
Fresh keys from the TLS key exchange for every session. 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.
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 |
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
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 pipe, cp, forward with --e2ee) 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 →