• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Forwarded to devs Fail2ban can't create custom jails with custom filter

Azurel

Silver Pleskian
User name: Azurel

TITLE

Fail2ban can't create custom jails with custom filter

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

CentOS 8.2, Plesk Obsidian 18.0.29#1

PROBLEM DESCRIPTION

CentOS 8.2 with Obsidian 18.0.29#1

I want create a custom jail. First I added a jail filter "custom-filter"
[Definition]
failregex = <HOST>$
ignoreregex =

Now I want add a jail with this custom filter
* Name: custom_jail
* Filter: custom-filter (selectbox)
* Action: iptables-allports[chain="INPUT", name="default", port="ssh", protocol="tcp", blocktype="REJECT --reject-with icmp-port-unreachable", returntype="RETURN", lockingopt="-w", iptables="iptables <lockingopt>"]
* Log path: /mypath...
* ban period: 172800
* login attempts: 1

After press save button I get this
Error: f2bmng failed: 2020-08-13 10:01:28,682 fail2ban.configreader [341671]: ERROR Found no accessible config files for 'filter.d/custom-filter' under /etc/fail2ban
2020-08-13 10:01:28,682 fail2ban.jailreader [341671]: ERROR Unable to read the filter 'custom-filter'
2020-08-13 10:01:28,682 fail2ban.jailsreader [341671]: ERROR Errors in jail 'custom_jail'. Skipping...
ERROR:__main__:Command '['/usr/bin/fail2ban-client', 'reload', '--if-exists', 'custom_jail']' returned non-zero exit status 255
ERROR:__main__:Failed to reload following jails due to errors in configuration: custom_jail

There is the file /etc/fail2ban/filter.d/custom-filter.local with correct content.

On old Server CentOS 7.8 its have worked long time ago. What can I do?

STEPS TO REPRODUCE

See description

ACTUAL RESULT

See description

EXPECTED RESULT

Obviously, I want save it :)

ANY ADDITIONAL INFORMATION



YOUR EXPECTATIONS FROM PLESK SERVICE TEAM


Confirm bug
 
From developer:

Unable to reproduce with STR provided by customer (checked on CentOS7 && CentOS8)

So, contact Plesk Support Team. Investigation directly on your server is required.
 
Back
Top