I installed Fail2Ban on my Debian Bookworm from repository by aptitude install fail2ban, it's my first experience and maybe I should do something to configure it like what I do for Samba and other services; here below you can find the result of systemctl status fail2ban.service
Code: Select all
× fail2ban.service - Fail2Ban Service
Loaded: loaded (/lib/systemd/system/fail2ban.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Thu 2023-11-09 12:55:03 CET; 2min 10s ago
Duration: 49ms
Docs: man:fail2ban(1)
Process: 1682 ExecStart=/usr/bin/fail2ban-server -xf start (code=exited, status=255/EXCEPTION)
Main PID: 1682 (code=exited, status=255/EXCEPTION)
CPU: 47ms
nov 09 12:55:03 SRV01 systemd[1]: Started fail2ban.service - Fail2Ban Service.
nov 09 12:55:03 SRV01 fail2ban-server[1682]: 2023-11-09 12:55:03,709 fail2ban [1682]: ERROR Failed during configuration: File contains no section headers.
nov 09 12:55:03 SRV01 fail2ban-server[1682]: file: '/etc/fail2ban/jail.local', line: 21
nov 09 12:55:03 SRV01 fail2ban-server[1682]: ' bantime = 1h\n'
nov 09 12:55:03 SRV01 fail2ban-server[1682]: 2023-11-09 12:55:03,711 fail2ban [1682]: ERROR Async configuration of server failed
nov 09 12:55:03 SRV01 systemd[1]: fail2ban.service: Main process exited, code=exited, status=255/EXCEPTION
nov 09 12:55:03 SRV01 systemd[1]: fail2ban.service: Failed with result 'exit-code'.
If i do fail2ban-client start I have:
Code: Select all
2023-11-09 13:16:34,198 fail2ban.configreader [2104]: WARNING 'allowipv6' not defined in 'Definition'. Using default one: 'auto'
2023-11-09 13:16:34,203 fail2ban [2104]: ERROR Failed during configuration: Have not found any log file for sshd jail
GabrieleMax