What qqt does not do, and where it can bite. Every item here is a design choice or a known gap, stated so you can decide before it decides for you. None of these are bugs — but several are sharp edges. |hadron|: QQT-003 a reverse (-R) listener is per-connection state — the server aborts it when the connection is reaped, so a client that dies leaves its server-side port held only until the 60 s idle timeout, and a redial’s in-use bind retries across that window; a listener that outlived its connection would wedge the port until the server restarted.
The mount reads the box’s private host key, so it needs
sudo -nor a readable key. The door’s server leaf is minted around the ssh host key (remote up), which is why the fingerprint inknown_hostsis the one the tunnel presents — and the signing needs the private half, which most distributions keep root-only under/etc/ssh/. A box whose login user can read it, or who has passwordlesssudo, mounts with nothing installed; a box with neither refuses with ssh’s own sentence rather than a host-key story. Nothing is installed either way: the binary rides the ssh channel and lands in the login user’s own state directory.One address family per socket, and
-4/-6pick it. Every lookup, bind and dial is filtered by the one global flag, the wayssh -4/ssh -6work; unset means both, tried in resolver order. A wildcard IPv6 listen ([::]) answers both families and a wildcard IPv4 listen answers IPv4 alone, so--listen [::]:4433is the single flag that serves a dual-stack box; under-6the same wildcard stays v6-only. The mechanism is rationale_qqt-address-family.md.A name with several addresses is tried address by address. Each attempt carries its own
CONNECT_TIMEOUT, and--reconnectretries the whole list rather than remembering a winner, so one dead family costs a deadline instead of the tunnel. There is no happy-eyeballs race and no family preference beyond resolver order.A link-local IPv6 literal needs its zone.
fe80::…is ambiguous without one, so a target, a-r, a--listenor a--verifynaming a link-local address carries%ifname([fe80::1%eth0]). The wire protocol has always accepted the zoned form on a target; the CLI accepts it everywhere it takes an address, which is why the address flags are not parsed asSocketAddr.One connection, one congestion domain. Every forwarded stream rides a single QUIC connection: it shares one congestion controller and it dies as one unit. A connection-level event (idle timeout, network change) ends all streams at once. The lossy-path cost of the shared controller is addressed at the CC layer — bbr is the shipped default (docs/rationale_qqt-congestion-control.md) — but the one-unit death is structural.
Reconnection is not automatic by default. Without
--reconnectthe client exits with status 1 the moment the connection is lost, by design — supervision owns the retry. With--reconnectthe client re-dials on its own (fixed 2 s pacing, re-resolving the server address), but in-flight streams still die with the old connection: a reconnect is a fresh handshake and fresh streams, never a seamless takeover.Loss detection costs up to 60 s. A dead path is detected by the 60 s idle timeout (keepalive is 10 s client-side; the timeout counts received traffic). A clean stop is different: the server closes the endpoint, every client receives CONNECTION_CLOSE, and the supervisor (or
--reconnect) starts at once. A silently dropped path is a black hole for up to a minute.No target allow-list. The server dials whatever a certified client names — loopback, link-local, the metadata address, internal ranges, all of it. The certificate is the whole access-control surface; if your certificate holders are less than fully trusted, the compensating controls are firewall rules on the server’s egress or distinct CAs per trust boundary. The same holds for a
-Rbind: the client names where the server listens.Reverse listeners live with the connection. A
-Rbind exists only while the client’s connection does: a redial rebinds it, and the server’s port is closed across the reconnect gap. A clean exit drops the listener at once; a client that crashed without a close leaves the server holding the port until its 60 s idle timeout reaps the connection, so a redial’s bind retries across that window (a ~70 s budget) rather than failing — a crash-restart rebinds, it just waits out the idle clock.Certificates expire — and revocation covers only the admit path. Leaf certs live 365 days by default (
--valid-days, enforced by the TLS handshake on both sides); the response to a leak is the fingerprint deny-list (revoke+server --revoked), re-read at every handshake so an entry bites with no restart. There is no CRL, no OCSP, and no client-side revocation of the server cert; the check sits after the handshake, so a connection already live when the list changes keeps its streams until it drops or the server restarts. The runbook for both is docs/instructions_qqt-remint.md.The initial connect has a 10 s deadline. A wrong
-raddress or an unpublished UDP port fails after 10 s with an error naming the address; with--reconnectthe client retries on the same 2 s cadence. Check the server’slistening on udpline and the platform’s port publish first (see docs/instructions_qqt-howto.md §5).UDP can be blocked or throttled. Some networks eat QUIC. The escape hatch is the ssh -L fallback lane kept armed as a hot spare (docs/instructions_qqt-howto.md §7) — both transports are plain local TCP listeners from a consumer’s point of view.
Single QUIC path, no multipath. Path migration rides QUIC connection IDs only; there is no multipath, no bundling of links.
1024 concurrent streams per connection, and the fds to hold them. The cap is a transport setting; the shipped units raise
LimitNOFILEto 65536 so 1024 streams fit. A unit without that limit makes the effective capmin(MAX_STREAMS, fd_limit - ~30), and the accept loop backs off on EMFILE rather than refusing cleanly.No per-stream accounting. The counters are per-connection and aggregate:
--statsand the Prometheus endpoint report the connection’s totals, never a per-forward or per-stream breakdown. Which of several-lspecs is the busy one is not a question either surface answers.Windows is unsupported. Unix permission bits are load-bearing for the cert files (
0600keys,0700dirs), and the code path-depends onstd::os::unix(permission modes, unix signals).UDP socket buffers ride kernel defaults. The QUIC socket never calls
SO_RCVBUF/SO_SNDBUF; on a long-fat path the kernel default receive buffer can cap throughput far below the path’s bandwidth-delay product — and that ceiling is window-dependent: quinn’s stock 1.25 MB stream window never hit it on the measured kernel, the raised windows’ bursts did (docs/rationale_qqt-benchmarks.md §3). The tuning procedure (operator-owned, never applied by qqt) is docs/instructions_qqt-tuning.md.The interface door widens what the far side may dial, in shape B. Today the
-Rallow-list is the client’s whole authority boundary: a server-written reverse target is dialled only if the operator named it (QQT-004). With an interface on both ends, the far side reaches any address inside the routed prefix with no-Rspec at all, because IP reaches it. That is a real widening — and in shape A, where only our side holds the interface, it does not occur. Shape A keeps the guarantee; shape B trades it for a routed link. docs/architecture_qqt-doors.md §The four shapes.The interface door needs a capability the forwarder does not.
--tunopens a device and installs routes, so it wantsCAP_NET_ADMINand/dev/net/tun; the forwarding, SOCKS5, and WireGuard doors need neither. This is the reason the no-capability doors exist, and the reason a container that runs the server needs no privileges at all.A TUN route outlives a hard kill only as long as the interface does. The kernel drops a tun device’s routes when the last fd closes, so a
SIGKILLis clean; an interface the process configured but did not own (a pre-existing device) can be left configured.--tunowns what it creates.The inner MTU must be at least the largest IPv6 payload any application behind the door will send. smoltcp 0.12 has no IPv6 egress fragmentation, so a v6 datagram that does not fit is not fragmented and not sent — the interface door refuses it with a typed error naming the ceiling. With the default
--tun-mtu 1280that ceiling is 1232 bytes of UDP payload (1280 − 40 v6 header − 8 UDP header). IPv4 is unaffected:proto-ipv4-fragmentationis compiled in and the stack fragments on egress, which is what the UDP relay depends on. Raising--tun-mturaises the v6 ceiling one byte per byte, up to the outer payload’s limit; the rule and its arithmetic aresrc/tun.rs’smax_v6_payloadandv6_payload_fits, andan_oversize_v6_datagram_is_refused_rather_than_truncatedpins it.The interface carries host addresses and per-destination routes — there is no ARP and no NDISC. The stack’s medium is
Medium::Ip, which performs no neighbour discovery at all (smoltcp src/phy/mod.rs:303), so--tun-localis a/32(or/128) and every destination in the prefix is reached through an explicit route rather than a resolved link address. That is why the door works against a stock kernel with no neighbour table and why a pre-existing interface configured for subnet-style addressing is not the shape this door expects.--tun-defaultdoes not take the prefix pre-flight refusal.--tun-routeis refused when the box already routes its prefix off a tunnel, because that means the operator is taking a prefix in use; a default route is present on every host by definition, so refusing on that basis would refuse the flag outright. Its two traps are handled instead: the endpoint’s host route is installed before the default flips, and--tun-excludeis seeded with the endpoint so the tunnel never carries its own transport.--tapopens a layer-2 device the tunnel’s stack cannot use. The flag is a layer choice over the same lifecycle (Layer::L2instead ofLayer::L3), but the netstack’s medium is IP, so a TAP device is refused at configuration time rather than opened and then found to carry nothing. The flag exists for the device lifecycle and for a future Ethernet-capable stack; today--tunis the only layer that routes.