- Plesk for Linux
Plesk Advisor, fails to activate Fail2Ban and ModSecurity:
CONFIG_TEXT: f2bmng failed: 2019-04-03 18:07:16,122 fail2ban.jailreader : ERROR No file(s) found for glob /var/log/modsec_audit.log
2019-04-03 18:07:16,123 fail2ban : ERROR Failed during configuration: Have not found any log file for plesk-modsecurity jail
This is a Plesk bug with ID EXTADVISOR-695, which is planned to be fixed in future updates.
As a workaround, activate ModSecurity before activating the Fail2Ban plesk-modsecurity jail:
Go to Tools & Settings > IP Address Banning (Fail2Ban) and click Switch Off IP Address Banning.
Enable ModSecurity at Tools & Settings > Web Application Firewall (ModSecurity).
Enable Fail2Ban and the plesk-modsecurity jail at Tools & Settings > IP Address Banning (Fail2Ban) > Switch On IP Address Banning and in Jails tab.