Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

Fail2Ban Jails Management

 
administrator guideprotection against brute force attacks fail2banserver administrationapachedovecot

Advanced users might also be interested in configuring the way the
so-called Fail2Ban jails are used to block IP addresses. A Fail2Ban
jail is a combination of a filter and one or several actions. A filter
defines a regular expression that matches a pattern corresponding to a
failed login attempt or another suspicious activity. Actions define
commands that are executed when the filter catches an abusive IP
address.

A jail can have active or inactive status. When Fail2Ban service is
running, only active jails will be used to monitor the log files and to
ban suspicious IP addresses.

In Plesk, there are preconfigured jails for all hosting services (web
server, mail server, FTP server, and so on). Most of them work in the
same way: they detect failed login attempts and block access to the
service for ten minutes. These jails are listed at the Jails tab at
Tools & Settings > IP Address Banning (Fail2Ban).

image 76414

The following preconfigured jails are available:

  • plesk-apache looks for Apache authorization failures and bans
    attackers for 10 minutes.
  • plesk-apache-badbot looks for email grabbers and vulnerability
    scanners in Apache’s access log files. The ban lasts for two days.
  • plesk-dovecot looks for Dovecot IMAP, POP3, and Sieve
    authentication failures and bans attackers for 10 minutes.
  • plesk-horde and plesk-roundcube detect webmail login failures
    and block access to a web service for 10 minutes.
  • plesk-modsecurity bans the IP addresses detected as harmful by
    the ModSecurity Web Application Firewall. The jail
    can only be activated if ModSecurity is already running, and will ban
    attackers even if ModSecurity is operating in the “Detection only”
    mode. The ban lasts for 10 minutes.
  • plesk-panel detects Plesk login failures and bans attackers for
    10 minutes.
  • plesk-postfix looks for Postfix SMTP and SASL authentication
    failures and bans attackers for 10 minutes.
  • plesk-proftpd looks for ProFTPD login failures and bans attackers
    for 10 minutes.
  • plesk-wordpress looks for WordPress authentication failures and
    bans attackers for 10 minutes.
  • recidive looks for other jails’ bans in Fail2Ban’s own log. It
    blocks hosts that have received a ban from other jails five times in
    the last 10 minutes. The ban lasts a week and applies to all services
    on the server.
  • ssh looks for SSH login failures and bans…
Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

Your Complete .htaccess Guide: Including .htaccess Basics and More

Read More »

NGINX vs Apache – Which Is the Best Web Server in 2024?

Read More »

Server Management: All You Need To Know

Read More »
Knowledge Base

Event Parameters Passed by Event Handlers – SSL/TLS certificate on mail server assigned/unassigned

Read More »

Event Parameters Passed by Event Handlers – Physical hosting created

Read More »

Event Parameters Passed by Event Handlers – Physical hosting updated

Read More »

Event Parameters Passed by Event Handlers – Mail account created

Read More »

Hosting Wiki

  • Server Redundancy
  • Horde
  • QMAIL
  • Dovecot
  • Sendmail
  • Bare Metal Server
  • Oracle VM Server
  • Server Virtualization Software
  • Windows Server
  • JavaScript
  • WordPress
  • Hosting Control Panel
  • Apache Tomcat
  • Apache
  • Web Server
  • DNS Server
  • IPv6
  • IPv4
  • SIP
  • SSH
  • UDP/IP
  • Firewall
  • Colocation Hosting
  • Reseller Hosting
  • Cloud Hosting
  • VPS Hosting
  • Dedicated Hosting
  • Shared Hosting
  • Free Hosting
  • Managed Hosting
  • Email Autoresponder
  • Mailing Lists
  • Email Alias
  • Email Virus Protection
  • Email Forwarding
  • Webmail
  • TCP/IP
  • IMAP
  • SMTP
  • POP3
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family