Files
ansible/roles/docker/templates/crowdsec-acquis-sshd.yaml.j2
T
PhilandClaude Opus 5.5 41e9428412 crowdsec: host sshd + Gitea logs, nftables firewall bouncer (SSH bans only for now), weekly hub update
- crowdsec image -> latest-debian (journalctl); reads host journal (sshd)
  and Gitea's log file (LePresidente/gitea); LAPI on 127.0.0.1:8080
- gitea also logs to /data/gitea/log/gitea.log (router lines console only)
- host: crowdsec-firewall-bouncer-nftables from packagecloud any/any, own
  nft tables on input+forward hooks; limited to local ssh detections and
  manual bans until crowdsec_firewall_all_decisions
- weekly cscli hub update/upgrade + SIGHUP

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 13:26:00 -07:00

10 lines
235 B
Django/Jinja

# Host sshd (Debian 13 logs as sshd-session) from the host journal.
# -D and the path must be separate items.
source: journalctl
journalctl_filter:
- "-D"
- "/var/log/journal"
- "_SYSTEMD_UNIT=ssh.service"
labels:
type: syslog