Files
urutau/deploy/host/42-urutau-ingress.conf
T
Lucas RayanandClaude Sonnet 5.5 aefdcea8d2 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>
2026-11-23 09:09:16 -03:00

9 lines
514 B
Plaintext

# Urutau: kernel log lines of the inbound observation table (a sample of the new
# connection attempts that reach the host) go to their own file and stay out of
# the general syslog. URUTAU-INO: is a port the host serves, URUTAU-IN: is not.
if ($syslogfacility-text == "kern" and ($msg contains "URUTAU-IN: " or $msg contains "URUTAU-INO: ")) then {
action(type="omfile" file="/var/log/urutau/ingress.log" template="RSYSLOG_FileFormat"
fileOwner="syslog" fileGroup="adm" fileCreateMode="0640")
stop
}