fail2ban / fail2ban

Daemon to ban hosts that cause multiple authentication errors
http://www.fail2ban.org
Other
11.88k stars 1.25k forks source link

[BR]: basic setup fail #3736

Closed fbifido closed 4 months ago

fbifido commented 5 months ago

debian 12.5 minimal with ssh

apt install fail2ban nano /etc/fail2ban/jail.conf , find [sshd], add maxretry =3, enable = true reboot now.

after reboot only getting this error message: "[519]: ERROR Failed during configuration: Have not found any log file for sshd jail" Apr 30 14:06:54 koha-01 systemd[1]: fail2ban.service: Main process exited, code=exited, status=255/EXCEPTION Apr 30 14:06:54 koha-01 systemd[1]: fail2ban.service: Failed with result 'exit-code'.

I know little about linux, but how hard is it to follow a simple tutorial and have it work: https://www.howtogeek.com/675010/how-to-secure-your-linux-computer-with-fail2ban/

mrkacg1 commented 5 months ago

hi, change in jail config: backend=systemd

sebres commented 4 months ago

Dup of #3292, already fixed in newest version.