satellite — Installation
Primary audience: TAPPaaS admin.
When do I need this? Only if your site has no usable public IP (CGNAT, dynamic IP, no inbound port-forwarding) and you want to publish services, reach the management plane remotely, or hold an off-site backup. A site with a real public IP does not need a satellite. This step is optional — the TAPPaaS install never runs it.
The satellite is a module like any other: module-manager module add
creates it, the nightly sweep patches it, module-manager module test checks it. Design
reference: ADR-010.
Prerequisites
- A running TAPPaaS foundation (
network+tappaas-cicd). - Decide which roles you need:
reverse-proxy(public HTTPS ingress) and/oradmin-vpn(relay for the admin VPN). Both are the default. - Allocate a host with a stable public IPv4 and root SSH — in the Hetzner Cloud
console, for example:
- Create a server: image Debian 12 or 13, type
cx23(x86, cheapest current line;cax11is the ARM alternative). - SSH key — attach your OPERATOR key (your workstation), not a
tappaas-cicdkey. It is your out-of-band access; the install authorizes the mothership's key itself. - Note its public IP, and where it is (country, city).
- Create a server: image Debian 12 or 13, type
- Outbound mail (port 25) allowed from the host. The satellite watches the home site
from outside and mails you when it goes dark — directly, since the home site's mail
path is what is down then. Hetzner blocks outbound port 25 on new projects until you
ask: request it in the Hetzner console (Limits → port 25) once the first invoice is
paid. Until then the satellite still watches, and its mail waits in its queue. A
mail-relaysatellite needs this too, and 465 if a module submits there (§ Mail through the satellite).
Tier B (opt-in): a Hetzner API token lets TAPPaaS create the server through the
hcloudAPI. The token can create and destroy servers — see ADR-010 §7.3 first.
Install
Log in to tappaas-cicd with your agent forwarded (ssh -A) — the install reaches the new
host with your operator key — then:
module-manager module add satellite \
--address <public-ip> \
--country FI --city Helsinki
- Instance name:
satellite(config~/config/satellite.json). A second satellite needs--instance <name>, e.g.--instance satellite-hel1. The install also registers<name>.mgmt.internalat its tunnel end,10.255.0.0. - Roles:
reverse-proxyandadmin-vpnby default; one of them only with--roles '["reverse-proxy"]'. Thebackuprole is not given here — it comes with locking the satellite down as the vault (below). - Where it is:
--location <name>names one of the site's locations (site-manager location list);--country [--city] [--building]use the location at that place, or add one of kindremote(named after the building, else the city). A backup copy is only off-site if it is somewhere else, and only this record shows it:backup-manager validatecompares the satellite's location with the site's primary one. Give the city when the site is in the same country. Change it later withmodule-manager module modify <instance> --set location=<name>. - Operator key: recorded from your forwarded agent (
ssh-add -L) ashost.operatorSshKeys; setTAPPAAS_OPERATOR_KEY(a key or a.pubfile) instead when the agent holds other keys too. The mothership's own key is never recorded as one.
The module then:
- Creates the home end of the tunnel on OPNsense (
tappaas-edge-<name>, theedgezone's/31). - Provisions Debian on the host over your key: WireGuard, the host firewall, nginx for
reverse-proxy, the UDP relay foradmin-vpn(seedebian/README.md). - Reads back the satellite's WireGuard public key (its private key never leaves it)
and adds the peer
tappaas-<name>on OPNsense, which dials out to it. - Adds the role-gated
edgefirewall rules. - Authorizes the mothership's key — the satellite is
managed: the nightly sweep patches it like any Debian machine (debianhost), reboots only whenrebootOkor--allow-disruptionallows. Unattended-upgrades stays off.
A failed install removes the config it wrote. If OPNsense already has this satellite's
tunnel, the install refuses: take it down first with --decommission (below).
Point your public DNS records at the satellite's address yourself — they are in your DNS provider, not in TAPPaaS.
Verification
module-manager module test satellite
| Check | Expected |
|---|---|
module test |
OPNsense server + peer present, the mothership logs in, tunnel handshake under 5 minutes, nginx active (reverse-proxy), relay rules loaded (admin-vpn), the debianhost checks green |
| reverse-proxy: browse a published name from off-LAN | resolves to the satellite, served by Caddy at home |
admin-vpn: network-manager wgvpn add-peer --name <device> --pubkey <key> |
the printed config's Endpoint is the satellite; the device reaches a node :8006, the OPNsense UI and SSH |
sshPort (when set): ssh -p <sshPort> tappaas@<satellite> from an allow-listed address |
a shell on the mothership; from any other address the connection is refused |
SSH to the mothership through the satellite
A Site with no public address has no direct SSH to its mothership. The admin VPN is the full
path (every node, the OPNsense UI, PBS); for "just a shell on the mothership" without a
WireGuard client, the satellite can pass one TCP port through to tappaas-cicd:22:
module-manager module modify <instance> --set sshPort=2222 --set 'sshAllow=["198.51.100.7"]'
sshAllow is required: the IPv4 addresses or networks allowed in (your office, your home
line, a jump host). Everyone else is refused on the satellite, by its firewall and by nginx,
which sees the real client address. The update that follows sets up:
- on the satellite: the firewall admits
tcp/<sshPort>fromsshAllowonly, and nginxstreampasses it, blind, to the home end of the tunnel (10.255.0.1:<sshPort>); - on OPNsense: a port forward on the tunnel,
10.255.0.1:<sshPort>→ the mothership:22(tappaas-satellite <instance> sshPort->mothership), and the edge rule that admits it (tappaas-satellite edge->mothership ssh <instance>).
SSH authenticates end to end: the host key you see is the mothership's, and its sshd is
key-only. Log in as tappaas:
ssh -p 2222 tappaas@<satellite address or name>
or, in ~/.ssh/config:
Host mothership-via-satellite
HostName satellite1.example.org # the satellite's public name or address
Port 2222
User tappaas
ServerAliveInterval 60 # nginx drops a relay idle for 12 hours
What this exposes: the mothership's sshd, reachable from the sshAllow sources over the
internet, key-only. The mothership sees every relayed login as coming from the satellite's
tunnel end (10.255.0.0), which its sshd exempts from per-source penalties — so one
client's failed attempts do not lock the others out; the allow-list is what limits who gets
that far. A port the satellite uses itself (22, 80, 443, 51820, 51821, 8007) is refused, as is
sshPort on a locked-down satellite.
Turn it off with module-manager module modify <instance> --set sshPort=0: the update removes
the port forward, the edge rule, and the satellite's firewall and nginx entries. Decommission
removes them too. module-manager module test <instance> checks the forward, the rule, the
allow-list on the satellite and the path through the tunnel to the mothership's sshd — or,
while it is off, that none of it is left.
Mail through the satellite
A Site whose ISP blocks port 25, or gives its address no reverse DNS, cannot run its own mail
directly. A managed satellite with the mail-relay role carries it: the mail module stays
exactly as it is in a Site with a public address — it declares its ports in its
network:nat natRules and an egress to the internet on TCP 25 — and the satellite names the
modules whose mail it carries.
A relayed module never gets its ports on the WAN. Its natVia field (network:nat) says
satellite: its forwards arrive through a satellite's tunnel or not at all. While no tunnel is
ready for it — no satellite names it yet, the tunnel is not wired yet, the satellite is being
taken down — the module is held: no port forwards and no outbound TCP 25 rule, with a
warning; its own install and update still succeed. The satellite sets natVia=satellite on
the modules it names, and it stays when the satellite goes.
The order of the steps — either works:
Module first. Mark it before it declares any port, so its forwards never reach the home line:
module-manager module modify mailserver --set natVia=satellite. Declare itsnatRulesand egress (below) and update it: it is held. Then add the satellite naming it, or give an existing one the role:module-manager module add satellite --address <public-ip> \ --roles '["reverse-proxy","admin-vpn","mail-relay"]' --mailRelay '{"modules":["mailserver"]}' # or, on an existing satellite: module-manager module modify <instance> \ --set 'roles=["reverse-proxy","admin-vpn","mail-relay"]' \ --set 'mailRelay={"modules":["mailserver"]}'Satellite first. Add the satellite naming the module, before the module declares its ports (or is installed at all): the satellite is accepted with a warning, forwards nothing yet, and marks the module. Then declare the module's
natRulesand update it — its forwards land on the tunnel — and update the satellite (module-manager module update <instance>; the nightly sweep does it too), which then forwards the ports.
The mail module's own config declares, once:
"egress": [ { "to": "internet", "ports": [25], "protocol": "TCP", "description": "outbound SMTP" } ],
"config": { "network:nat": { "natRules": [
{ "externalPort": 25 }, { "externalPort": 465 }, { "externalPort": 587 },
{ "externalPort": 993 }, { "externalPort": 995 } ] } }
The install or update that follows sets up:
- first, the checks: OPNsense must carry TAPPaaS's InterfaceAssign API patch (it assigns
the tunnel as an interface). It is compared with the checkout's; when it is not current,
opnsense-ensure-patchesis run, and if that does not make it current the install or update fails before anything is wired, naming the command to run on the mothership (opnsense-ensure-patches). The control plane's update installs the patch; amodule update networkdoes not. - on OPNsense: the satellite's tunnel assigned as an interface (
SAT_<NAME>) with a gateway at the satellite's end (SAT_<NAME>_GW); the satellite's peer admitting any source (AllowedIPs0.0.0.0/0, with route installation off, so the tunnel never becomes a route); an outbound NAT of TCP 25 on the tunnel to its home address (10.255.0.1; outbound NAT mode moved from automatic to hybrid if needed). The forwards' replies go through that gateway, and OPNsense offers a gateway made moments ago for replies only after a while: the update waits for it (up to three minutes) before any forward names it. Then the relayed modules' services run again: their port forwards land on the tunnel, each with a filter rule passing only the module's port and replying through the tunnel, and their egress on TCP 25 is routed to the satellite's gateway. A forward whose filter rule is refused is removed with it, so no half-made forward is left. - on the satellite: the declared ports on its public address forwarded to
10.255.0.1unchanged — no source NAT, so the module sees, logs and filters the sender's real address — and home's outbound TCP 25 masqueraded to the satellite's address; IP forwarding on. Only the declared ports are forwarded, nothing else. The TCP MSS of every connection through the tunnel is clamped to the tunnel's MTU (1420) less 40, 1380, in both directions: without it a full-size segment — a TLS ClientHello with a post-quantum key share, which current mail clients send — is lost in the tunnel and every TLS handshake hangs. It is part of the satellite's rendered firewall, so it survives a reboot and every update.
If the home side cannot be set up — the patch, the interface, the gateway, the outbound NAT —
the install fails rather than reporting success, and what it had wired on OPNsense is taken
away again, so the next module add starts clean. A failure in any later step of an install
does the same.
Before mail flows:
- Reverse DNS: set the satellite's PTR record at the provider (Hetzner Cloud: the reverse DNS entry of the server's primary IPv4, in the Cloud console) to the mail host's name, and point the domain's MX and SPF at the satellite's address. Receivers check that the sending address resolves back to the name the server greets with.
- Outbound 25 and 465: Hetzner Cloud blocks both on new accounts. Once the account is a month old and the first invoice is paid, ask in the console (a limit request, naming the use case); Hetzner decides case by case.
- IPv4 only: the satellite carries outbound mail over IPv4. Have the mail server send over
IPv4 (Postfix:
smtp_address_preference = ipv4, orinet_protocols = ipv4), or mail leaves the home line over IPv6 without the satellite's address and reverse DNS.
A relayed module's port that the satellite uses itself (22, 80, 443, 51820/udp, 51821/udp,
8007, sshPort) is refused, as is mail-relay on a locked-down satellite: a vault opens no
path home. A module named by two satellites is refused.
What this exposes: the module's declared ports on the satellite's address — what a Site with a public address exposes on its WAN. The satellite stays a relay that holds no mail and no keys; but because the tunnel now admits any source address from it, a compromised satellite could send packets with forged sources into the tunnel. They reach only what the tunnel's rules pass: the relayed modules' declared ports.
Turn it off by taking mail-relay out of roles (or a module out of mailRelay.modules): the
satellite stops forwarding first, the modules lose their forwards and outbound SMTP rule —
held, not moved to the WAN, since they keep natVia=satellite — then the tunnel's
interface, gateway and outbound NAT are removed. To serve a module's mail on the WAN after all
(a Site that gained a public address), say so for that module:
module-manager module modify mailserver --set natVia=wan. Another satellite naming the module
takes it over instead. module-manager module test <instance> checks both halves; the
module's network:nat test checks, while it is held, that none of its forwards is on the WAN.
The satellite as the Site's PBS
A Site with no PBS of its own (the backup module a shim) can put it on a managed satellite: the nodes push their backups to it through the tunnel.
- Attach a volume to the VPS in the provider's console, and make a ZFS pool on it named
tankc…(e.g.zpool create tankc1 /dev/sdbas root on the satellite) — the same rule the backup module applies to every PBS Host. Point the backup module at the satellite and update it:
module-manager module modify backup --set node=
The update finds the pool, installs the official PBS on the satellite, opens the nodes' path — an OPNsense rule
mgmt → 10.255.0.0:8007, and the satellite's tunnel and firewall admitting the mgmt subnet to:8007only — pointsbackup.mgmt.internalat<instance>.mgmt.internal(the tunnel end,10.255.0.0), and registers the storage. The sweep keeps the path open while the satellite is the PBS Host, and closes it after.
This is then the Site's only copy, and home can reach it: backup-manager validate warns
until something home cannot reach pulls it — a second satellite, locked down (below), or a
backup buddy (backup-manager peer add remote …). A satellite that is the PBS Host cannot
itself be locked down, and cannot be decommissioned until the PBS is moved.
Locking it down as the off-site vault
A managed satellite can become the Site's off-site backup vault: it pulls the Site's PBS, and nothing at home can log in to it or delete its copy — the property ADR-010 §7.3 exists for. This is one-way:
module-manager module modify <instance> --lockdown
It needs a PBS of the Site's own (backup placement node) to pull, an operator key recorded
on the satellite, and the satellite must not be the Site's PBS Host itself, nor carry
sshPort or mail-relay — a vault opens no path home. Then, over the
mothership's key:
- On the Site's PBS: a read-only login
<name>@pbs, granted like anyremotepeer —DatastoreReaderon the root namespace, not propagated, sofs/(config and secrets) and other peers' data stay out of reach (backup-manager peerslists it). - On OPNsense:
edge → <PBS>:8007, so the satellite reaches the PBS through the tunnel. - On the satellite: the official PBS, a datastore (
/srv/pbs/tappaas-offsite), a daily pull (--remove-vanished false: home deleting a snapshot never deletes the copy) and the vault's own prune; security-only unattended-upgrades; and last, the mothership's key removed. - It checks the mothership can no longer log in, then records
management: unmanaged,roles+backup, andvault.pull.
A failure before the last step leaves a managed satellite: fix the cause and run
--lockdown again. Afterwards the sweep skips it, module test checks it from OPNsense
only, and only your operator key reaches it. Returning it to managed is by hand, on the
machine, with that key.
Removing it
module-manager module delete <instance>unregisters it, like any machine: the tunnel stays up and nothing is touched.module-manager module delete <instance> --decommissionalso takes the Site's side down: the OPNsense peer and tunnel server, thesshPortport forward and its rule, themail-relaytunnel interface, gateway and outbound NAT (the relayed modules' forwards and outbound SMTP rule are removed first — they are held, never moved to the WAN; see above), a vault's read access to the Site's PBS, and theedgerules when no other satellite needs them. It removes the satellite's config (unless--archive), so the instance's name is free for the nextmodule add. The machine itself — and any copy a vault holds — is never touched: delete it in the provider's console.- With the config gone (an install that failed before this release removed it, leaving
tappaas-edge-<name>on OPNsense, which the nextmodule addrefuses):module-manager module delete satellite --decommissionstill works for an instance namedsatellite; for another instance name, run the module's ownsrc/foundation/satellite/delete.sh <instance> [name]. Both find the Site's side by the satellite's name and take nothing down when OPNsense has nothing under it.
Converting an existing satellite
A satellite set up with the retired satellite-manager is config/satellite-<name>.json,
status: external. Migration 0008 already recorded its moduleSource. To make it a managed
module, on tappaas-cicd:
- Rename it, keeping the name so the OPNsense peer and tunnel keep theirs:
mv ~/config/satellite-<name>.json ~/config/<name>.json Record its address and management, drop the stop-gap status, name where it is (a location of the site:
site-manager location add hetzner-hel1 --country FI --city Helsinki --kind remotefirst, when the site has none there):jq '.address = .host.publicIp | .management = "managed" | del(.status) | .location = "hetzner-hel1"' \
~/config/<name>.json > /tmp/sat.json && mv /tmp/sat.json ~/config/<name>.jsonAuthorize the mothership's key on it, from your workstation:
ssh root@<address> "cat >> ~/.ssh/authorized_keys" < <(ssh tappaas@<cicd> cat .ssh/id_ed25519.pub)- Check:
module-manager module list --resolutionnames itsatellite, andmodule-manager module test <name>is green. From then on the sweep patches it.
Where does this fit in the TAPPaaS install?
The main install does not run this. At the "does this site need a satellite?"
decision point (after network and tappaas-cicd), the install guide points here.