Backups before features · console first · evidence always
Run it like
infrastructure.
The deep day-two manual: how to watch the edge, back it up, update it safely, keep certificates sane, harden it, shape it, fail it over, and put it back together — plus the troubleshooting table and the recovery card.
1 · Health & monitoring
The console’s Monitoring page is fed by GET /api/v1/stats — interface rates, load, memory, conntrack and session counts. There is no mock fallback; if the numbers are missing, something is actually missing. See the capture.
GET /api/v1/healthis the honest liveness probe: 200 = nftables + NAT tables present, default route exists, dnsmasq and systemd-networkd active. 503 degraded = one of those is missing;default_route: missingmeans the WAN is not providing a route. Wire it into your monitoring with a two-line check — full semantics in the API reference.GET /api/v1/wan-healthreports per-uplink probe results and failover state.GET /api/v1/neighborsshows ARP/NDP — the fastest way to spot an unexpected device.- Memory context from the live edge (V102 sample): 505.6 MB of 3.8 GB used (12.9%) with 81 public IPs, 64 1:1 NATs, 72 forwards, 354 IPv4 rules, 1,341 IPv6 rules, and 10,437 conntrack entries — load average 0.07. The default conntrack table holds 262,144 entries; you will outgrow CPU before that. Source: hardware guide · measured workload.
- Charts support time ranges, pause/resume, CSV export, and per-interface comparison; ranges widen falsely if you screenshot them mid-reconfig — compare against the audit log, not against memory.
External reading: conntrack-tools · nftables wiki · tc(8).
2 · Maintenance schedule
| When | Check | Why |
|---|---|---|
| Daily | Health page (/api/v1/health), failed units, WAN route, disk space, recent audit events. | Catch a dead WAN, failed app, full disk, or unexpected login early. |
| Weekly | Backup download, app status, interface errors, certificate expiry, update status (/api/v1/update/status). | Keep a recovery copy and avoid surprise expirations. |
| Monthly | Restore test on a lab unit, firmware review, rule/alias cleanup, API key review. | A backup you have never restored is only a hope. |
| Quarterly | Password rotation, SSH/API key review, UPS test, hardware inspection, capacity review. | Security and power failures are boring until they are not. |
Print this table. Tape it to the rack. The corresponding one-liners: df -h /, tc -s qdisc, journalctl -u dnsmasq -n 100, nft list ruleset | less — and the audit page in the UI for who changed what.
3 · Audit log
Every authenticated mutation appends actor, client IP, action, target, and result — visible in the UI under Audit Log, read-only at GET /api/v1/audit. It is append-only in the UI; treat exported rows like evidence. Use it to answer “what changed at 03:12?” before you reconfigure anything. Related: RFC 9110 (conditional requests pair naturally with If-Match on apply) · API route index.
4 · Backups & restore drills
What a backup is: a JSON snapshot of the entire configuration — interfaces, segments, rules, NAT, DHCP reservations, aliases, schedules, DNS filters, static routes, public IPs, and app state metadata. Private keys are never in it. Encrypted export (AES-256-GCM with PBKDF2) is supported; plain export is a JSON file you must guard.
- Download: Backups & Recovery → download the JSON, or the encrypted variant. (Programmatically:
GET /api/v1/configreturns the same store — see the API reference.) - Store off-box: ASCS Cloud Storage (free 32 GB) is the one-click Download + open Cloud Storage link-out; the appliance keeps no storage password or token.
- Keep the recovery kit together: verified ISO + the backup + the per-install console password, offline. If any one of the three is missing, the other two are decorations.
- Restore drill (monthly, lab unit): fresh install from the last-known-good ISO → restore the backup → confirm management address, WAN route, DNS, DHCP pool, and firewall policy → record what differed. Do this before you need it at 02:00.
- Restore for real: attach console → install the last-known-good ISO (or use the recovery console) → restore backup via Backups & Recovery → reboot → verify per deployment §11.
The apply engine snapshots the previous configuration and keeps a last-known-good copy; a bad apply reverts rather than bricks. There is no OS A/B — a failed kernel/root update is recovered through the installer or recovery console. Standards for the encrypted path: NIST SP 800-38D (AES-GCM) · RFC 2898 (PBKDF2) · NIST SP 800-132.
5 · Updates, supervision & rollback
Cloud Bridge updates the application through signed, root-owned A/B slots. The kernel and root filesystem are not atomic — “OS A/B” is design-only (V2.2) and is not in this image. Do not describe it that way, internally or externally.
- Before:
GET /api/v1/update/status— record current slot, previous slot, application version, and health state. - Apply: during a maintenance window. Expect a brief management interruption while the new slot starts and passes its health check.
- Supervision: the new slot must become healthy. If it doesn’t, the supervisor restores the previous slot automatically — do not keep retrying a failing apply.
- Rollback on demand:
POST /api/v1/update/rollbackswitches back to the previous recorded slot. The Update Center is read-only for status; applying and rolling back both require the signed update path. - If an apply fails: stop. Capture the diagnostics bundle (
GET /api/v1/diagnostics/bundle— redacted, downloadable from Settings), the update-status output, and the audit rows. Then roll back, then investigate. Escalate with evidence — never with vibes.
Context: download page (V109 was withdrawn over missing Docker runtime binaries; V120 corrected packaging) · Boundaries & verification · Docker docs (App Store runtime).
6 · TLS & certificates
The appliance ships with a self-signed certificate and a local CA you can actually use for a clean internal PKI:
- Create the CA —
POST /api/v1/certificates/ca— an ECDSA P-256 root (FIPS 186-5). - Issue server certificates with DNS and IP SANs —
POST /api/v1/certificates— or import an existing PEM cert/key pair —POST /api/v1/certificates/import. - Select it for the management listener —
POST /api/v1/certificates/{id}/management. Clients (andcurl -kcan go away) now trust it if they trust your CA. - Revert any time —
DELETE /api/v1/certificates/managementreturns the listener to the generated certificate. One click, no drama. - Private keys never leave as PEMs. Keys are root-only on the appliance and are not part of configuration backups. Downloading a certificate PEM (
GET …/{id}/download) moves the public cert only — treat downloaded key material from your CA the way you treat passwords.
Automatic ACME issuance and automatic management-listener installation are not part of this preview (RFC 8555 is linked for contrast). And never expose the console to WAN to work around a certificate warning — that warning is the system working. Standards: RFC 5280 (X.509).
7 · Users, keys & access
- Named accounts only — admin (everything, including users/keys/certificates/factory-defaults), operator (writes, but not raw config replace or setup apply), viewer (read-only). No shared admin account. Full matrix: API reference · RBAC.
- Passwords are Argon2id; legacy PBKDF2 hashes migrate on login. API keys are scoped (
admin/write/read), expirable, rotatable (/rotate), revocable; the secret is shown once asascs_…and stored hashed. - SSH is key-only where enabled and restricted to the management network. Disabling SSH clears the authorized keys — the correct fix for a pasted-wrong-key lockout in Preview 128.
- LAN-only management, always. Remote access means a VPN into the lab network, not a port-forward to 443.
- Verify keys quarterly: list keys with last-used, revoke the stale, rotate the rest.
More: operations · security hardening · /.well-known/security.txt · RFC 9116.
8 · Traffic shaping (WAN-wide and granular)
WAN-wide: upload/download limits on all active WAN interfaces — TBF shaping with an ifb ingress redirect. Set conservative limits from measured line rate, then verify with tc -s qdisc on the appliance.
Preview 128 granular: HTB classes and flower filters per interface — IP/CIDR, TCP/UDP port, direction, rate, ceiling, and priority — with the WAN-wide limits retained as the default class. Practically: a VoIP subnet can hold its ceiling while bulk transfers get clamped, and the WAN links stay the WAN links.
- Match on direction first (egress vs the ifb-redirected ingress), then protocol and ports, then set rate (guaranteed) and ceiling (burst max).
- Verify, always:
tc -s qdisc,tc -s class show dev eth0,tc filter show dev eth0— packet counters move or the filter is decorative. - Do not set a ceiling below the link’s real capability without testing — you will manufacture latency you cannot see in averages.
Theory and man pages: LARTC · tc-htb(8) · tc-flower(8) · tc(8).
9 · Multi-WAN health & failover
- Give the primary WAN the lower route metric; the backup gets the higher one. Confirm with
ip route show. - Enable health checks only after the base WAN works. Pick a target reachable without split DNS — e.g. a public anycast resolver (
9.9.9.9/1.1.1.1) or your own hosted endpoint, not a name that resolves differently per WAN. - Failover fires when the probe fails; restore is automatic when it recovers. Watch it with
GET /api/v1/wan-healthand the Monitoring page. - Test it — you have not got failover until you have cut a WAN in a lab. Block the probe target or unplug the lab WAN; confirm routes flip; restore; confirm they flip back. Record timings in your acceptance evidence.
- Remember shaped limits apply to all active WAN interfaces — a backup path that is slower than the primary needs its own conservative ceiling.
10 · DNS, DHCP & filters
- Upstream resolvers under Settings; dnsmasq serves LAN/OPT. Keep the gateway and reservations outside the pool.
- DNS Filters block a domain and its subdomains — test with an actual subdomain lookup, and with a query from a client, not from the appliance.
- DHCP reservations pin MAC → address; bulk import via
/api/v1/dhcp-reservations/bulk. If clients fail to get leases: segment interface up? Range large enough? Pool exhausted by lease churn? Firewall allowing bootp/dhcp? VLAN tag matching on the AP? - DHCPv4 leases view (
/api/v1/dhcp/leases) is the first place to look for “the printer vanished.”
11 · IPv6 operations
- Lab pattern: static
/64+ router advertisements; verify a client gets SLAAC addressing and a default route (NDP · SLAAC). - Stateless vs Stateful DHCPv6 per segment; Stateful serving from the segment
/64— a delegated /56 produces a LAN /64 with SLAAC working end-to-end in the lab. - Real-ISP PD/PPPoE interplay is not part of the verified claim — lab it with a DHCPv6-PD server first (RFC 3633 · RFC 8415).
- Never block ICMPv6 (RFC 4443) or DHCPv6/DHCP-relay traffic in the IPv6 policy — a rule set copied from IPv4 will blackhole NDP silently.
12 · App Store lifecycle
- Docker is included, the service is enabled, and the App Store reports the 15-app inventory with live runtime status — it does not claim unavailable installs.
- Lifecycle order for anything new: install one small app → confirm start → confirm port reachable → confirm logs visible → stop → start → reinstall → then rely on it.
- App updates ride the signed A/B slots with health supervision and rollback — same rules as §5. V109 shipped without its Docker binaries and was withdrawn; that is what the ISO content gate exists for.
- App logs:
GET /api/v1/apps/{id}/logs. Port conflicts with the OS: pick different host ports in the app setup form; the console shows them. - Give app containers their own VLAN/segment if they hold unpatched software. The default-deny posture is your friend; use it forward, not only backward.
13 · Troubleshooting
| Symptom | First checks | Do not |
|---|---|---|
| UI unreachable | Console; LAN link/address; HTTPS on 443/8443; firewall; management interface bound? | Do not factory-reset before the console; do not enable WAN management. |
| WAN down | Link state, address, ip route show default, DNS, upstream port, /api/v1/wan-health. | Do not add a second default route blindly — metrics exist for a reason. |
Health reports default_route: missing | Uplink config, DHCP on WAN, PPPoE state, provider outage, health target reachability. | Do not ignore it because “the UI opens.” |
| DHCP clients fail | Segment interface, range, pool exhaustion, firewall bootpc/dhcp, VLAN tag end-to-end. | Do not widen the pool over the gateway or reservations. |
| DNS fails | Upstream reachability, dnsmasq status (systemctl is-active dnsmasq), DNS filters, client DNS settings. | Do not assume the ISP resolver answers from inside your LAN design. |
| App installs but won’t start | Docker daemon, app logs, image pull (WAN access?), port conflict. | Do not loop reinstalls without reading /api/v1/apps/{id}/logs. |
| Update fails | /api/v1/update/status: slot health, signature result, previous slot. Use rollback; capture the bundle. | Do not power-cycle mid-apply. |
| Shaping has no effect | tc -s qdisc, ifb module loaded, limits configured on the right WAN, HTB class counters moving. | Do not set ceilings below real line rate “to be safe.” |
| DHCPv6 fails | Segment /64, mode, RA, ICMPv6 allowed, client support (SLAAC vs stateful). | Do not assume stateful works with an empty prefix. |
| Unexpected outbound connections | Discovered Hosts, conntrack table, audit log, app inventory; egress rules. | Do not block ICMP wholesale; do not “fix” with a reboot as a substitute for reading the audit log. |
| Conntrack table full | conntrack -C vs nf_conntrack_max (default 262,144), top talkers, app NAT loops. | Do not just raise the table on a 1 GB box — find the leak or the loop first. |
| Certificate warning on the console | Expected pre-CA. Install a local CA cert or revert to a proper SAN cert (§6). | Do not disable cert validation in browsers to “fix” it. |
14 · Recovery card
- Attach console. Do not reset the admin password unless you have decided to lose the current configuration.
- Check link, address, route, disk space (
df -h /), and failed units. - Boot the last-known-good ISO, or use the recovery console.
- Restore the last verified configuration backup; confirm management address, WAN route, DNS, DHCP, firewall.
- Record what failed, the image version, and the evidence — before you retry.
15 · Escalate with evidence
Include: release version, UI version, BIOS/UEFI path, interface names, ip route, ip -6 route, tc -s qdisc, /api/v1/health, and the relevant app/update logs — or a GET /api/v1/diagnostics/bundle. Never include: passwords, API keys, PPPoE credentials. Send to support@ascsonoway.com. Security issues: see /.well-known/security.txt.
Console first. Health is a contract, not a vibe. Backups are drills, not files. Updates are supervised slots, not magic. Certificates are your CA’s job. Management never leaves the LAN. And nothing is production until the acceptance walk and your own evidence say so — see Boundaries & verification.
