CrowdSec
Bans from logs, bouncers, cscli
Bans from logs, bouncers, cscli
auth.log, and a bouncer on the host bans the address in nftables on every port, containers included. Then check from outside that only 22, 80 and 443 are open. The why is in the manuals, linked from every stage./var/log/auth.log, recognizes password and key guessing and decides on a ban, and crowdsec-firewall-bouncer on the host drops packets from that address in nftables — on every port, sites in Docker included. The setup comes from production servers; Traefik and Cloudflare aren’t needed here — with them, see CrowdSec with Traefik behind Cloudflare.X-Forwarded-For.cscli with docker exec crowdsec; on the host, no prefix is needed.Entries from other topics that are about this too.