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
@@ -33,6 +33,10 @@ const (
|
||||
SrcFail2ban = "fail2ban"
|
||||
SrcProbe = "probe"
|
||||
SrcEgress = "egress"
|
||||
// SrcIngress is the sampled kernel log of new inbound attempts (ingress.log)
|
||||
// and SrcIngressCnt the exact once-a-minute counters (ingress.counters).
|
||||
SrcIngress = "ingress"
|
||||
SrcIngressCnt = "ingresscnt"
|
||||
)
|
||||
|
||||
// File names carried whole.
|
||||
@@ -41,7 +45,7 @@ const (
|
||||
FileResolv = "resolv.conf"
|
||||
)
|
||||
|
||||
var Sources = []string{SrcTraefik, SrcAuth, SrcFail2ban, SrcProbe, SrcEgress}
|
||||
var Sources = []string{SrcTraefik, SrcAuth, SrcFail2ban, SrcProbe, SrcEgress, SrcIngress, SrcIngressCnt}
|
||||
|
||||
func ValidSource(s string) bool {
|
||||
for _, x := range Sources {
|
||||
|
||||
Reference in new issue
Block a user