docs: screenshots of every page, egress and enforce demo data
Release / Plan (reuse the published image?) (push) Successful in 5s
Release / ci (push) Skipped
Release / Build image (amd64) (push) Skipped
Release / Build image (arm64) (push) Skipped
Release / Publish tags (push) Successful in 14s
Release / Gitea release (push) Skipped

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas RayanandClaude Opus 5.5 committed 2026-11-14 23:51:34 -03:00
1 parent c33cca22e3
commit 5d3374ee11
81 files changed
+271 -14

No files matched your search

+8
View File
@@ -6,6 +6,7 @@
// demo geo <dir> grava dbip-city-lite-*.mmdb e dbip-asn-lite-*.mmdb
// demo logs <dir> <edge-1|edge-2> [seed] grava access.log, auth.log e fail2ban.log
// demo live <segundos> <dir>:<host>... acrescenta eventos ao vivo, até o tempo acabar
// demo egress <dir> grava egress.log e containers.map (análise de saída)
// demo check <arquivo>... falha se achar IP fora das faixas reservadas
package main
@@ -13,6 +14,7 @@ import (
"fmt"
"net/netip"
"os"
"path/filepath"
"regexp"
"strconv"
"strings"
@@ -56,6 +58,8 @@ func run(a []string) error {
dirs, hosts = append(dirs, d), append(hosts, h)
}
return live(dirs, hosts, time.Duration(secs)*time.Second)
case "egress":
return writeEgress(a[1])
case "check":
return check(a[1:])
}
@@ -80,6 +84,10 @@ func check(files []string) error {
continue // versão de navegador (Chrome/130.0.0.0), não um endereço
}
ip, err := netip.ParseAddr(m)
base := filepath.Base(f)
if err == nil && ip.IsPrivate() && (base == "egress.log" || base == "containers.map") {
continue // origens dos contêineres (10.x/172.x/fd00::)
}
if err != nil || reserved(ip) {
continue
}