23rd July 2025

Study all about utilizing Plesk & Fail2ban to guard your servers. Our Plesk Help workforce is right here that can assist you together with your questions and issues.

Plesk Fail2ban: Setup

Safeguarding our server from brute drive assaults has grow to be a norm in as we speak’s digital world.

Fail2Ban is a robust device that provides assist. It automates monitoring log recordsdata for suspicious patterns and taking proactive measures to ban potential threats.

Plesk Fail2ban: How to Setup

As we speak, we’re going to try organising Fail2Ban on our OVH VPS.

  1. To start with, we now have to log into our Plesk server through the next URL. We have now to interchange the X’s with our server’s IP tackle.

    https://XXX.XXX.XXX.XXX:8443

  2. Then, head to “Instruments & Settings” and choose “Updates & Upgrades”.
  3. Now, click on on “Add/Take away Elements” and choose ‘Fail2Ban’ from the out there parts. This may begin the set up course of.
  4. Subsequent, click on ‘Proceed’ to proceed with the set up course of.
  5. As soon as accomplished, we are able to entry Fail2Ban through Plesk > Instruments & Settings > Handle Banning (Fail2Ban).

Set Up Fail2Ban for Automated IP Banning

  1. First, head to “Instruments & Settings” and choose “IP Handle Banning (Fail2Ban)” within the Safety group.
  2. Now, we are able to allow the intrusion detection checkbox to activate the Fail2Ban service.
  3. Moreover, we now have to specify settings like IP tackle ban interval, time interval for detection, and the variety of failures earlier than banning an IP.
  4. Lastly, click on ‘OK’ to use the configuration.

Handle IP Addresses Manually

Whereas Fail2Ban affords a GUI for viewing and whitelisting IP addresses, including an IP manually requires SSH entry.

We will view all Fail2Ban Blacklist IPs with this command:

sudo iptables -nL

We will manually block an IP as seen right here:

sudo fail2ban-client set JAILNAME banip IP ADDRESS

Right here, we now have to interchange JAILNAME with the particular jail title and IP ADDRESS` with the IP we want to ban.

Moreover, we are able to view our Jail’s standing:

fail2ban-client standing

Our consultants suggest being cautious to keep away from unintentionally banning our IP Plesk Helpthroughout this course of.

[Need assistance with a different issue? Our team is available 24/7.]

Conclusion

In short, our Help Specialists demonstrated the best way to arrange Fail2ban whereas utilizing Plesk.

PREVENT YOUR SERVER FROM CRASHING!

By no means once more lose prospects to poor server velocity! Allow us to enable you to.

Our server consultants will monitor & keep your server 24/7 in order that it stays lightning quick and safe.

GET STARTED

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.