Applicable to:
- Plesk Onyx for Linux
Symptoms
-
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.
Cause
Many domains in Plesk are causing too many logs to read for Fail2Ban
Resolution
-
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
by
CONFIG_TEXT: logpath = /var/www/vhosts/system/*/logs/access*log
-
Go to Plesk > Tools&Settings > Fail2Ban > Settings:
-
Check Enable intrusion detection
-
Click OK/Apply
Comments
0 comments
Please sign in to leave a comment.