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 |