6 Commits

Author SHA1 Message Date
46dae1acfa README: MikroTik-Bouncer verliert Address-List-Eintraege (Workaround dokumentiert)
Gemessen: nur 11.597 von 25.564 aktiven Decisions standen tatsaechlich auf dem
Router (45,4 %), darunter 30 von 58 eigenen Bans. Ursache ist der Cache des
Bouncers: Eintraege laufen per Timeout auf dem Router ab, der Cache meldet
weiterhin 'already present' und legt sie nie neu an.

Kein Versionsproblem - :latest ist digest-identisch mit v0.7.3 (neuestes
Release, Apr 2025). Workaround ist ein taeglicher Neustart per cron
(30 4 * * *), der die Liste komplett neu synchronisiert: 11.597 -> 25.037
in ~60 s, danach keine Requests mehr von bereits gelisteten IPs.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-09 19:57:45 +02:00
26b810509f README: Stack dokumentiert, Verweis auf TraefikConfig-Repo
Die Traefik-Konfiguration unter /srv/TRAEFIK/etc/traefik ist jetzt in einem
eigenen Repo (lutz/TraefikConfig) versioniert; hier steht, wie die beiden
Repos zusammenspielen und was wo liegt.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-09 17:11:49 +02:00
ecca92f3ed crowdsec: version-control Synology syslog pipeline and ban profiles
Since Jul 12 the stack ingests Synology DSM syslog (fids/fids2 -> Log
Center -> 192.168.0.142:5514/udp), but only the published port was in the
working tree and the actual config lived exclusively in the crowdsec-config
named volume -- a volume reset would have silently dropped the Synology
detection and the escalating ban policy.

Moved into the repo and bind-mounted (single source of truth; the shadowed
copies were removed from the volume):
- crowdsec/acquis-synology.yaml -> acquis.d/synology.yaml (syslog listener)
- crowdsec/parsers/famfihome-synology-connection.yaml -> s01-parse/
  (local parser for DSM 7 "Connection" failed sign-ins -> synology-dsm-bf)
- crowdsec/profiles.yaml (escalating ban (count+1)*12h, capped at 168h)

Also commits the previously untracked 5514:514/udp port mapping.

Verified after recreate: syslog listener bound on :514, lines arriving from
192.168.0.234, traefik access.log tail active, local parser loaded, cscli
explain on a DSM sign-in failure still reaches crowdsecurity/synology-dsm-bf,
26 active decisions preserved, both bouncers pulling.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-09 16:59:46 +02:00
be65ccd70c gitignore: also exclude smtp.pw temp secret
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-28 20:03:13 +02:00
34d11c0e29 Add CrowdSec MikroTik bouncer (edge firewall drop)
- New crowdsec-mikrotik-bouncer service: mirrors CrowdSec decisions into a
  RouterOS address-list on the AX3 for WAN edge-dropping (covers all ports,
  incl. VPN/SSH), complementing the L7 Traefik bouncer.
- Connects over api-ssl/TLS using an OpenBAO-issued cert; trusts the OpenBAO
  root+intermediate via SSL_CERT_FILE (crowdsec/famfi-ca-bundle.pem).
- Secrets (MIKROTIK_PASS, LAPI key) kept in root-only .mikrotik.env, git-ignored.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-28 16:17:59 +02:00
1c2c2a5fe2 New setup of Traefik with crowdsec 2026-06-28 14:20:41 +02:00