This article will show you how to enable Fail2Ban within your Plesk based Virtual Private Server (VPS). Fail2Ban is a security module which can limit brute force attacks to your server.

NOTE: Secure passwords are far more critical than blocking brute force attempts. We have an article on securing your password here: Secure Passwords: Why They’re Important.


  1. Login to Plesk using your admin credentials.
  2. On the left hand side, select Tools and Settings, then IP Address Banning (Fail2Ban):
    plesk - enable fail2ban
  3. In the Settings tab, select the enable checkbox and click OK:
    plesk - enable fail2ban
  4. To ensure you don’t accidentally trigger the rule from your office, set your own IP in the Trusted IP Addresses.
    From the Trusted IP Addresses tab, Click on Add Trusted IP.
    plesk - enable fail2ban
    Then Add a new trusted IP address and click OK. (Recommend to add a Description e.g. Office IP)
    plesk - enable fail2ban
    Note: It’s highly recommended to have a business grade Internet plan with a static IP address.
  5. To begin enabling of the monitoring, select Jails, and select the jail to enable. Click on the Switch On button to enable this jail. For example, to enable the jail for Dovecot (POP3/IMAP), you’d select the following:
    plesk - enable fail2ban
  6. You should see the jail then marked as active on the right hand side.
  7. Fail2Ban is now configured and running on your server. You can check for banned IP’s and/or false positives under the Banned IP Addresses tab.
Was this article helpful?

Related Articles