Repository navigation
Open
4 / 44 of 4 issues completedOpen
4 / 44 of 4 issues completed
Copy link
Description
What's the problem
Nothing today shows what leaves a box, and several claims are wrong or unchecked.
- No caller of the netwatch classifier (
tests/netwatch/netwatch-classify.sh) was found in the current batteries, so it proves nothing. - The outbound firewall fences containers only. There is no log-only mode to watch what a host-wide default drop would have blocked.
- The dashboard labels Caddy as firewalled although it uses host networking and is outside the container fence.
- Whether a stray
htpdateunit is enabled in the built image is unchecked. - There is no machine-readable list of the outbound paths, so docs and tests are written by hand and drift.
What it impacts
Every later step. Without log-only counters and a netwatch leg, #4155 (benchmark) Run 0 has no unexpected-flow source, and #4154 (step 9: enforce the firewall) would be enforced blind. Owners see an egress panel that overstates the fence.
How I found it
The 2026-11-15 and 2026-11-16 egress inventory (49 paths). Code read of origin/develop: the firstboot and setup-again units call htpdate -s www.debian.org, and the dashboard egress service labels host-network services. Not yet booted or captured for this issue.
How important is it
High for 2.0.5 and first in order. It changes no behaviour, so it is cheap and safe, and every other step is judged against it.
Acceptance criteria
- A host
inetoutput table loads in log-only mode on both roles: it counts and logs what would be dropped and drops nothing.egress-statusandpithead doctorshow the counters. Enforcement is not in this issue (Enforce the host egress firewall: one inet output table, policy drop, both roles #4154 (step 9: enforce the firewall)). - netwatch is wired into a KVM leg on both roles (Pithead appliance and RigForge rig) as non-required, with five windows: first boot, reboot, update, one hour of mining and set up again. A silent or dead capture is a failure.
- The dashboard no longer calls Caddy or other host-network services firewalled.
systemctl is-enabled htpdateis checked on a built image and the result is recorded in this issue.- The egress map (one row per outbound path: role, destination, today, target, route, enforcer, test) is committed as a data file in the repo. It is the single input for the firewall ruleset, Proof gate: netwatch relay-set test, required five-window KVM leg and new-egress grep gate for Tor-only egress #4153 (step 8: proof gate) and docs: host egress table, DIY host checklist, pithead doctor --host-egress and new-egress checklist #4156 (docs).
- The change alters no routing. A short run shows mining and dashboard behaviour unchanged, and it is the base for [benchmark] Stability and mining impact of Tor-only egress #4155 (benchmark) Run 0.
Possible solutions
- Generate the log-only ruleset from the egress map data so later enforcement is a flag, not a rewrite.
- Reuse the netwatch selftest harness and add only the wiring.
- Start from the inventory's 49 rows and trim to what the code confirms.
- Unknown: how the output table coexists with netavark, the LAN guard and RigForge's input table; test it here in log-only mode first.
Sibling work: #4144 (tracker).
Sub-issues
Collapse Sub-issuesSub-issues
Loading 4 sub-issues
Activity
pithead-architect commentedon Nov 17, 2026
A local session judged this too big for one local session (Too big for one local session: issue #4145 carries four independent objectives (egress map as data, log-only host inet output table with counters in egress-status/doctor, netwatch wired into the KVM battery on both roles plus the htpdate image check, honest dashboard labels for host-network services). The runner filed 4 chunks as sub-issues and marked this issue a tracker, so it is not picked again:
pithead-developer commentedon Nov 20, 2026
htpdate on the built image (#4196 AC 3):
systemctl is-enabled htpdatereads enabled on the booted appliance image, from tier4-kvm job 4284@a6f9a93f3b324fd8f9af2a76de5b696f137662ad (boot phase, rowhtpdate unit on the booted image reads enabled).The same job's netwatch windows recorded plaintext HTTP egress from the guest: first boot had 1
CLEARNET-PLAINTEXT-HTTP-egressflow (x6 packets) and reboot had 3. The update window (job 4285, same commit) recorded 6 unexpected flows in total. My guess is that the HTTP flows are htpdate's-s www.debian.orgDate read, but the KVM vantage cannot attribute them to a unit, so that is unproven. Removing that fallback is #4149. The first-boot window's other two unexpected rows are ingress from the virbr0 gateway (ICMP, and UDP to port 68).pithead-developer commentedon Nov 22, 2026
htpdate re-check on the current #4196 head: the boot job's
htpdate unit on the booted image reads enabledrow also passed at f8df5ed (job 4461, bench-local 796). Result unchanged:enabled.