feat(ingress): firewall telemetry of inbound attempts (host kit --ingress)
Observation-only nftables table (prerouting -150, counters and a rate-limited log, never drops or modifies), a per-minute counters file, probe sources ingress and ingresscnt, a per-host hourly aggregate in the hub (exact totals, sampled ports/ASNs/countries, banned share by the hub's own ban state, no ban feedback loop), GET /api/v1/ingress, a Defense section, doctor check, docs EN/pt-BR and tests. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4143bf599e
commit
aefdcea8d2
40 files changed
+1684
-11
No files matched your search
@@ -6,6 +6,10 @@ Format based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versio
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Added
|
||||
|
||||
- Firewall telemetry (inbound attempts): the application logs cannot see connection attempts to ports where nothing listens, nor packets from addresses that are already banned (the firewall drops them silently), so the panel understated the real scale and SSH attacks seemed to fall only because bans work. New host kit option `install.sh --ingress` adds an observation-only nftables table (`inet urutau_ingress`, prerouting priority -150, before Docker's DNAT; counters and a rate-limited log, it never drops, accepts, marks or rewrites anything) and a timer that writes exact counters to `/var/log/urutau/ingress.counters`, plus a sample of the attempts in `/var/log/urutau/ingress.log`. The probe tails both (`URUTAU_INGRESS_LOG`, `URUTAU_INGRESS_COUNTERS`), the hub aggregates per host in hourly buckets for 30 days, and Defense gets a "Firewall: inbound attempts" section: exact totals and attempts per hour, share to closed ports, share from currently banned sources (estimated from the sample), and top ports, networks and countries labelled as sampled. New endpoint `GET /api/v1/ingress`; `urutau doctor` reports whether the source is present and fresh. The attempts are telemetry only: they never become events or evidence, so there is no ban feedback loop. To upgrade: update the hub and the probes, then on each host run `sudo sh deploy/host/install.sh --ingress` (add `--probe` and `--enforce` as that host already uses). The sources show as `waiting` until then. A cloud provider firewall (for example an Oracle Cloud security list) blocks some ports before the host, so the metric is what reaches the host.
|
||||
|
||||
## [2.2.2] - 2026-11-19
|
||||
|
||||
### Fixed
|
||||
|
||||
Reference in new issue
Block a user