Services on other networks, reachable only by those you allow.

A database, an SSH server or an internal web app on a machine in another network is reachable by name from the machines you allow, with no open port and no public address on either side. Your organisation signs who gets in; the relay cannot.

Installing nfltr

install.sh installs the latest nfltr on macOS and Linux (amd64 and arm64) into ~/.local/bin. It checks the release's signed manifest.json and the binary's SHA-256 first, and refuses a missing or bad signature or a mismatch. With Homebrew, on macOS or Linux: brew install nfltr/tap/nfltr. All downloads lists each platform's file with its SHA-256 and signature; the Android app has its own entry below.

curl -fsSL https://nfltr.xyz/install.sh | sh

A service on one machine, reached from another

Install nfltr on both machines (Mac or Linux). On db-1, the machine with the database: sign in in the browser, make your organisation (it asks for a new passphrase for its root, and keeps the organisation running in the background), add the laptop, allow it to use db-1's pg, and serve pg. Carry laptop.code to the laptop yourself; there, nfltr join enrols it, and nfltr pipe opens an end to end encrypted session to db-1's database. To give a local web app a public share link instead, see the tutorial: a share link's TLS ends at the relay.

# on both machines
curl -fsSL https://nfltr.xyz/install.sh | sh
# on db-1
nfltr login
nfltr org init
nfltr machines add laptop > laptop.code
nfltr access allow laptop db-1/pg
nfltr serve pg --forward localhost:5432 --e2ee
# on the laptop
nfltr join --code-file - < laptop.code
nfltr pipe db-1/pg

What it does

A laptop reaches a database, an SSH server or an internal web app on a machine in another network, by name. Access can also be approved for a time.

What it doesAna's laptop reaches the database pg on the machine db-1, in another network, by the name db-1/pg. A second example: an engineer of a vendor, invited into a customer's organisation, asks for an hour on the customer's server; a person the customer named approves it, and the server admits the engineer until the hour ends.reaches db-1/pg by nameasks for one hourapprovesana's laptopdb-1 in another network:database pgA vendor's engineer,invited by the customerThe customer's approverThe customer's server,reachable for that hour
What it does

The problem it solves

Reaching a service on another network usually means opening an inbound port or giving the machine a public address, and sharing a password. Here both machines only connect out, and who may connect is a signed rule.

Before and afterBefore, a laptop connects in to a server through a port open to the internet or a public address, with a shared password. After, the laptop and the server each make only an outgoing connection to the relay; nothing on the server listens on the internet, and a rule signed by the organisation says who may connect.connects inconnects outconnects outBefore:a laptopServer: a port opento the internet,a shared passwordAfter:a laptopRelayServer: nothinglistens on theinternet, a signedrule says whomay connect
Before and after

How it works

The owner signs a rule, the relay passes it to the serving machine, and that machine checks it on every connection.

How it worksThe owner signs a rule that lets ana use db-1/pg. The relay passes the signed rule to db-1. Ana's laptop and db-1 each connect out to the relay, or directly to each other when their networks allow it. db-1 checks the signed rule on every connection: ana is admitted, bob has no rule and is refused.signed ruleconnect outrule and trafficOwner signs:ana may usedb-1/pgLaptopsof anaand bobRelay, or directwhen networksallowdb-1 connects out too,checks the rule onevery connectionana: admittedbob: no rule,refused
How it works

How it is different

When the service in the middle decides who gets in, whoever runs it, or breaks into it, can let anyone in. Here your organisation signs who gets in and the serving machine checks it; the relay in the middle carries the traffic and cannot let anyone in.

Who decides who gets inElsewhere, the service in the middle decides who gets in, so whoever runs it or breaks into it can let anyone in. Here, the organisation signs who gets in and the serving machine checks it; the relay carries the traffic and cannot add anyone.Elsewhere: the servicein the middle decideswho gets inHere: your organisationsigns who gets in; therelay cannot add anyone
Who decides who gets in
  • Access can be approved for a time, for example an hour, by a person the organisation named.
  • 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.
  • Every session is recorded by the machine that served it: who, which service, when and how much, never the content.

Without an account

Also built on it: nfltr-send and nfltr-pipe, two open-source commands that show it most directly.

Who may use which service, signed by your organisation

Your organisation's root signs who may use which service, and the machine that serves it checks that signature on every session. The relay carries the rules and the sessions; it cannot grant access.

The root stays on its owner's machine. A rule names who may use a service: a group, a machine or a person. nfltr access allow support db-1/pg lets group support use the service pg on the machine db-1; the root signs the new rules and the organisation's issuer publishes them. The machine serving pg admits a client of the organisation only by a rule the root signed: no rule, no session. The relay passes the signed rules along, but it holds no key that signs them, so it cannot add anyone.

People join by invite. nfltr people invite makes a single-use invite for one email address, valid for 7 days. On the person's machine, nfltr join reads it and they sign in at the organisation's identity provider in the browser; their machine then reaches, by name, the services the rules give them.

Access can also be approved for a time. Someone with no rule for a service asks with nfltr access request db-1/pg --for 1h --reason INC-1. A person the root named as an approver of that service approves it, and the serving machine admits by that grant until it ends, at most 168 hours. Nobody approves their own request.

nfltr access revoke ends a grant, nfltr machines revoke a machine, and nfltr people remove everything of one person in one command: every machine of theirs, the grants they hold, their invites. 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.

Every organisation session is recorded by the machine that served it, signed, numbered and sent sealed to the issuer: who, which service, what admitted it, when, for how long and how many bytes, never the content. nfltr access log on the issuer's machine lists the sessions, then any record that was lost, edited, out of order or held back.

# the owner's machine: make the organisation, a code for db-1, an invite for ana
nfltr login
nfltr org init
nfltr machines add db-1 --group db > db-1.code
nfltr people invite ana@example.com --sign-in https://accounts.google.com --client-id ID --group support --allow db-1/pg
# db-1, the database's machine, with db-1.code copied to it
nfltr join --code-file - < db-1.code
nfltr serve pg --forward localhost:5432 --e2ee
# ana's machine, with the invite she was sent
nfltr join
nfltr pipe db-1/pg

A network of enrolled machines, with no inbound ports

Machines of an organisation reach each other's TCP and UDP services by name, end to end encrypted, on a direct path when their networks allow one and through the relay when not.

Identity comes first. A machine joins an organisation with nfltr join and the single-use code or invite it was sent, makes its own key, and gets a certificate from the organisation's issuer; the organisation's root stays with its owner. A service names the groups it serves, and a client reaches it by machine and service name. A session between them is TLS 1.3 from end to end, each side checked against the organisation's root, so the relay carries only its ciphertext. Revoking a machine ends its open sessions and refuses new ones.

A session runs through the relay, which works from any network that allows one outgoing connection. When both ends ask for it and their networks allow it, the session moves to a direct UDP path between the two machines under the same keys, and back to the relay when that path fails.

nfltr serve publishes a TCP or UDP service, SSH or a directory for files. nfltr up runs the connect sidecar: one file publishes a machine's services and maps remote ones to local ports or sockets, so programs keep using plain sockets. A capability address (nf1…) gives one service to someone outside the organisation: whoever holds it reaches the service end to end with no account, and serving the service under a new address revokes the old one.

nfltr http gives a local web app an HTTPS address while the command runs. Programs written in Go open the same sessions, peer-to-peer ones included, with the open-source relay SDK.

nfltr serve db --forward localhost:5432 --e2ee
How a session formsEach machine makes one outgoing connection to the relay. A session first runs through the relay as TLS between the two machines, each checking the other against the organisation's root, so the relay carries ciphertext. When both ends ask for a direct path, each learns the other's addresses through the relay and both dial; if a dial gets through, the session moves to the direct UDP path under the same keys, and back through the relay if that path fails. The relay sees which machines talk, when, and how much.one outgoing connectionone outgoing connectiondirect UDP path when a dialgets through, same keysClient machine: nfltr pipe--directRelay: sees whichmachines, when and howmuch; carries TLS it cannotopenService machine: nfltr serve
How a session forms

Keep the path on your own network

The relay that carries every connection can also run on a machine of your own. This is in beta.

nfltr.xyz runs the hosted relay, and most people use that. In beta, the same relay can run on a Linux machine of your own with nfltr relay serve, so traffic between your machines never leaves your network. Tunnels, pipes, SSH and share links (on a domain of yours) work on it; the dashboard and the private LAN do not yet.

Programs written in Go can also connect to the relay directly with the Go SDK.

nfltr relay serve --data-dir /var/lib/nfltr-relay --tls-self-signed --tls-name relay.lan

Status

An hourly test shows whether the hosted service is working.

Every hour a canary uses nfltr.xyz as its users do. One computer runs it: it serves an echo under each of its canary machine identities and pipes bytes through each by name and through its nf1 address, directly where a direct path forms and through the relay; it also pipes through an nf1 address a second machine serves when that machine is up, fetches a share link over HTTPS and sends a mailbox message. Every byte must come back exactly once.

The status page shows the share of tests that passed over the last 24 hours and 7 days, the latest failures and how long each took. One computer runs the test, so a gap means that computer was offline; the page marks itself out of date once its newest result is more than two hours old.

Blog

Notes from building nfltr: how each part works, what was measured and what went wrong.

Each post opens with the problem it is about, belongs to a series, and gives every measured claim its setup, its numbers, how to reproduce it and its limits. Failed experiments stay in the posts.

Files from one machine to another, verified and resumable

nfltr-send sends files and directories to whoever holds the address it prints, end to end encrypted, directly between the machines when their networks allow it and through the relay otherwise.

The receiver verifies every chunk against the root the sender pinned before writing it, and nothing lands in the receiving directory until all of it verifies. A cut transfer keeps what arrived and resumes, sending only the chunks that are missing. In its reliability matrix, 275 transfers across rates, round trips, loss, cuts and a full disk arrived with 0 corrupted.

It is open source (Apache-2.0) on the relay's public SDK, with signed release binaries for Linux, macOS and Windows.

One machine's output into another's input

nfltr-pipe joins two machines' standard input and output over one end to end encrypted session, so tar, a database dump or a log follows across them.

Each end's exit code says whether every byte arrived: an end exits 0 only once the other took all of it. The session runs directly between the machines when their networks allow it and through the relay otherwise.

It is open source (Apache-2.0) on the relay's public SDK, with signed release binaries.

How we know

Trust does not come from the relay. Machines of an organisation are enrolled under the organisation's own root of trust; the two ends of a session check each other's certificate against that root, and the relay carries the session's ciphertext. A revoked machine is refused at both ends and its open sessions are cut. When both ends ask for it and can reach each other, a session runs on a direct path between them under the same keys, and falls back to the relay when that path fails.

What a hostile relay cannot do is checked by models and tests, not asserted: a symbolic model of each end-to-end path in which the relay is the attacker, state-machine models of sessions, direct paths and revocation, and tests that change each field a model binds and require the code to refuse it. The threat model states what is proven, what is not, and what every relay still sees.

The open-source commands and layers

nfltr-send and nfltr-pipe, and three of the layers under NFLTR, are Go modules published on GitHub under the Apache-2.0 license: the stream multiplexer at the bottom, the relay's session core, and the SDK and wire protocol that programs use to talk to a relay. Each is versioned on its own, with signed release binaries for the two commands.

nfltr/quic-go is NFLTR's fork of quic-go (MIT license). It carries a few fixes that link's QUIC transport needs, each its own commit with its test.

nfltr on Android (preview)

The Android app runs the released nfltr command on an arm64 phone with Android 8.0 or newer. The phone joins an organisation with a code from nfltr machines add, forwards the organisation's services to ports on the phone, sends files and receives them in an inbox. The APK is signed with nfltr's Android release key; its SHA-256 and the signing certificate's SHA-256 fingerprint come from the release that published it. It is a preview: its machine key is a file in the app's private storage, not in Android's hardware-backed Keystore. The Android guide describes installing it and what it does not do yet.

nfltr-android-v2.1.108.apk

SHA-256: 40e5e108b6ca2c045419c46a2e92c6da0790d0e4ead31f218f1ebd7f8f7f6ded

Signing certificate SHA-256: d1ce8007893c6ec28dbc42dc58d8e3c0f43c15640890097c9fdb863ceb5328d3