Skip to content

Shield

The Shield page puts a post-quantum front door in front of an app on a machine that can’t, or shouldn’t, take connections from the internet: a laptop, a home or office network, a VM behind NAT. A connector next to the app dials out to a relay you run on a public machine; visitors reach the relay over X25519MLKEM768. The app’s machine opens no port.

visitors ══ X25519MLKEM768 ══▶ relay (public, yours) ◀══ PQ-only mTLS, dialed out ══ connector (Flarebox) ─▶ your app

It’s pqdoctor proxy’s relay and connector, with a form instead of files.

Shield → New shield:

Field What it is
The app What the connector forwards to: 127.0.0.1:3000, tls://…, unix:/…, or udp://127.0.0.1:51820 for a UDP service (WireGuard, DNS).
Name Names the connector (its certificate’s CN). The relay sends visitors only to the connector with this name.
Relay host:port of the public machine where connectors dial in, e.g. relay.example.org:7443.
Public name, port The name visitors use (default: the relay’s) and where the relay listens for them (default 0.0.0.0:443, or the app’s port for UDP).
Folder Where the shield’s folder goes (default: Flarebox’s settings folder).
Test certificate A certificate for the public name from a private test CA, so the relay runs before you have a real one. Browsers won’t trust it.

Create both ends writes <name>-shield/ with an ML-DSA-65 CA, the relay’s certificate, the connector’s client certificate, relay/relay.toml and connector/connector.toml. The relay lets in only this connector, by name and key, with an ML-DSA certificate, within limits on parked and waiting connections (what the relay accepts). Nothing runs yet.

Each shield has two rows:

  • Connector, Run here: Flarebox runs it inside the app, with 4 connections parked at the relay. It shows whether it’s parked, visitors served, connections open, bytes and uptime. A connector that can’t reach the relay keeps trying (1 s, doubling to 60 s) and says Waiting for the other end.
  • Relay, Run here to try: the relay belongs on the public machine. Copy relay/ there and run the install command from Details (pqdoctor proxy install …/relay.toml). Running it in Flarebox is for trying both ends on one computer: make the shield with the relay 127.0.0.1:7443, public name localhost, a public port like 127.0.0.1:8443 and a test certificate, start both, and open https://localhost:8443/.

When the relay runs in Flarebox its row shows how many of this connector’s connections are parked, visitors, the share that negotiated post-quantum, and backend failures.

Details shows each hop as pqdoctor proxy check sees it, the file, and the command to install that end as a service. Log shows the proxies’ log. Stopping an end lets open connections finish first. Removing a shield from the list stops it and keeps its folder.

A shield run inside Flarebox stops when Flarebox quits. To keep the connector running without Flarebox, install it as a service with the command in Details.

Post-quantum key exchange on the network hops (visitors that support it, and always between relay and connector) and ML-DSA authentication between relay and connector. Visitors still see your usual certificate for the public name, and the connector reaches the app in plain on the same machine. Hop by hop.

  • Get a certificate for the public name. Put yours in relay/public.pem and public.key, or turn on [listener.acme] in relay.toml on the relay machine.
  • Run the relay on another machine for you. Flarebox writes its files; you copy them there.
  • Make visitors’ UDP post-quantum: for a udp:// app, visitors send plain UDP and their protocol’s own encryption (WireGuard’s, for example) covers that hop. From the relay to the connector it’s inside post-quantum TLS.