Fail2Ban module doesn't start

While I was configuring Fail2ban on Virtualmin I wanted to bring the changes to Webmin too.
So, I installed the Fail2ban module on a VPS, but it doesn’t start.
If I go to Status the message “There are no active jails enabled yet.” appears.
If I also enable the “Filter Action Jails” sshd and then restart Fail2Ban, it doesn’t start.
If I activate webmin-auth it still doesn’t start.

These are the errors.

Apr 26 08:13:31 MY-SRV fail2ban-server[2210]: 2024-04-26 08:13:31,619 fail2ban.configreader   [2210]: WARNING 'allowipv6' not defined in 'Definition'. Using default one: 'auto'
Apr 26 08:13:31 MY-SRV fail2ban-server[2210]: 2024-04-26 08:13:31,639 fail2ban                [2210]: ERROR   Failed during configuration: Have not found any log file for webmin-auth jail
Apr 26 08:13:31 MY-SRV fail2ban-server[2210]: 2024-04-26 08:13:31,646 fail2ban                [2210]: ERROR   Async configuration of server failed
Apr 26 08:13:31 MY-SRV systemd[1]: fail2ban.service: Main process exited, code=exited, status=255/EXCEPTION
Apr 26 08:13:31 MY-SRV systemd[1]: fail2ban.service: Failed with result 'exit-code'.
Apr 26 08:14:32 MY-SRV systemd[1]: Started fail2ban.service - Fail2Ban Service.
Apr 26 08:14:33 MY-SRV fail2ban-server[2432]: 2024-04-26 08:14:33,065 fail2ban.configreader   [2432]: WARNING 'allowipv6' not defined in 'Definition'. Using default one: 'auto'
Apr 26 08:14:33 MY-SRV fail2ban-server[2432]: 2024-04-26 08:14:33,090 fail2ban                [2432]: ERROR   Failed during configuration: Have not found any log file for sshd jail
Apr 26 08:14:33 MY-SRV fail2ban-server[2432]: 2024-04-26 08:14:33,096 fail2ban                [2432]: ERROR   Async configuration of server failed
Apr 26 08:14:33 MY-SRV systemd[1]: fail2ban.service: Main process exited, code=exited, status=255/EXCEPTION
Apr 26 08:14:33 MY-SRV systemd[1]: fail2ban.service: Failed with result 'exit-code'.

I compared the configurations with those of Virtualmin and they seem the same to me.

SYSTEM INFORMATION
OS type and version Debian 12
Webmin version Webmin 2.211

you may want to edit the config in jail.conf
around line 132 make sure backend = auto is present, the reason for fail2ban not starting is it can not find the log file it want’s to scan, setting this backend to auto may fix the problem for you.

don’t worry about the allowipv6 error it’s just a warning

1 Like

It’s already present.
I changed it to systemd and it ran.
Thanks anyway for the support.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.