- Plesk 12.0 for Linux
- Plesk 12.5 for Linux
- Plesk Onyx for Linux
In an attempt to enable the Fail2ban jail the following error is shown:
# plesk bin ip_ban --enable-jails 'plesk-roundcube'
f2bmng failed: WARNING Wrong value for 'loglevel' in 'Definition'. Using default one: '1'
ERROR Found no accessible config files for 'action.d/iptables-multiport' under /etc/fail2ban
ERROR Error in action definition iptables-multiport[name="plesk-roundcube", port="http,https,7080,7081"]
ERROR Errors in jail 'plesk-roundcube'. Skipping...
ERROR:f2bmng:Command '['/usr/bin/fail2ban-client', 'reload', 'plesk-roundcube']' returned non-zero exit status 255
ERROR:f2bmng:Failed to reload following jails due to errors in configuration: plesk-roundcube
Misconfiguration between jail rules and existing services.
- Log into the server via SSH.
Create a backup for the Fail2ban jail rules:
# cp /etc/fail2ban/jail.local /root/jail.local
Delete the Fail2ban component with the command:
# plesk installer --select-release-current --remove-component fail2ban
Rename Fail2ban directory:
# mv /etc/fail2ban /etc/fail2ban_old
Install Fail2ban component back:
# plesk installer --select-release-current --install-component fail2ban
# mv /root/jail.local /etc/fail2ban/
Try to switch the Fail2ban jail in Plesk > Tools & Settings > IP Address Banning > Jails.
Note: in case the solution above did not help, apply the steps from the article below:
Unable to activate or remove Fail2ban: error reading information on service fail2ban: No such file or directory