• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved How to recognize fail2ban filter

Zoo3

Regular Pleskian
Server operating system version
CentOS 7.9
Plesk version and microupdate number
18.0.48
I want to specify the following filter in Plesk fail2ban. Even though I create it in filter management, when I create a new jail it does not appear in the menu as an option in the list of filters. I'm able to create the filter itself, but cannot specify it in new jail.

How can I specify the filter if I process it in any way?

Code:
[Definition]
_groupsre = (?:(?:,?\s*"\w+":(?:"[^"]+"|\w+))*)
failregex = ^\{%(_groupsre)s,?\s*"remoteAddr":"<HOST>"%(_groupsre)s,?\s*"message":"Login failed:
            ^\{%(_groupsre)s,?\s*"remoteAddr":"<HOST>"%(_groupsre)s,?\s*"message":"Trusted domain error.
datepattern = ,?\s*"time"\s*:\s*"%%Y-%%m-%%d[T ]%%H:%%M:%%S(%%z)?"
 
Have you added a section to the jail.local file for it? If so, have you reloaded fail2ban afterwards?
 
Have you added a section to the jail.local file for it? If so, have you reloaded fail2ban afterwards?
I don't use Plesk, just add it to jail.local on the command line and filter is specified.
Does that mean I can't specify the filter in the Plesk UI?

When I do the add to jail.local in Plesk, it is "Tool>fail2ban>jail tab>Add jail" right?
I manually create a jail in jail.local on the command line and then open the jail in Plesk and it is configured as it should be. But I can't choose a filter from the list.
 
Could you please explain what you mean to "choose a filter from the list"? From which list and which filter?
 
Could you please explain what you mean to "choose a filter from the list"? From which list and which filter?
I click the "add jail" button. The progress will then go to the configuration page. On the top row there is a "name" field and the "Filter" I am describing is on the second row. This filter list includes "apache-auth -Apache authentication failure" and so on.
There the filters I have added within the filter management do not appear.
 
The reason for the behavior is that the filter rule is missing this line:
Code:
ignoreregex =
Simply add it to the end of your rule. Afterwards the filter will become available in the filters list in Plesk GUI.
 
The reason for the behavior is that the filter rule is missing this line:
Code:
ignoreregex =
Simply add it to the end of your rule. Afterwards the filter will become available in the filters list in Plesk GUI.
Thank you !!
I was able to set it up with Plesk.
 
Back
Top