Hi all, I’ve created a script package to automatically configure fail2ban . On minimal installs (DietPi) with OpenSSH/Dropbear, faile2ban often misses SSH brute-force attempts (btmp).
This tool checks and tries to config fail2ban on the most common auth type services.It can be custom configured using the service.conf file (eg sshd, smbd, etc), defaults to skip existing fail2ban configs (unless –force), date-backs up any existing faile2ban configs, auto-gens missing filters+jails, installs/sets-up and uninstalls (with backups.gz) via script.
Anyhow, if u find use for such a tool - download it here: https://limewire.com/d/NsX4t#I0buBALc8C
Use sudo tar -xzvf fail2ban-autogen.tar.gz ; cd fail2ban-autogen; sudo ./install-fail2ban-autogen.sh
(The installer sets up files, a cron job, and does an initial run. Edit /etc/fail2ban-autogen/services.conf to customise or generate missing filters once installed)
Important: Test at own risk - it does create backups before any config mods - but review everything before deploying.
Hope you find it useful.