- Plesk Onyx for Linux
When enabling Fail2Ban:
PLESK_ERROR: Unable to save the settings: f2bmng failed: Synchronizing state of fail2ban.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable fail2ban
Job for fail2ban.service failed because the control process exited with error code. See "systemctl status fail2ban.service" and "journalctl -xe" for details.
ERROR:f2bmng:Failed to start fail2ban service.
The server has Nginx + Apache
The following warning is while managing Fail2Ban in Tools&Settings > Fail2Ban > Settings:
Warning: Fail2Ban might not operate properly if there are many domains and Fail2Ban has to monitor too many log files.
Many domains in Plesk are causing too many logs to read for Fail2Ban
Go to Plesk > Tools&Settings > Fail2Ban > Jails
Edit plesk-apache-badbot and plesk-wordpress jails as follows:
Click the <jail-name> > Change settings, and replace:
Note: repeat this step for both jail names from point 3.
CONFIG_TEXT: logpath = /var/www/vhosts/system/*/logs/*access*log
CONFIG_TEXT: logpath = /var/www/vhosts/system/*/logs/access*log
Go to Plesk > Tools&Settings > Fail2Ban > Settings:
Check Enable intrusion detection