• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Please beaware of a breaking change in the REST API on the next Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

Input fail2ban trusted IP Addresses

jmin

Basic Pleskian
Hi! Feature request.

It would be great to have an option for add a comment when adding an IP address to the Trusted list, this would help to identify the addresses when time passes.

Kind regards.
 
I've added my vote.

As a workaround.. you can add your comment or (Tags in this case) after the ip address by adding a comma "," example:
Less:
123.456.789.10,MyOffice
321.654.987.01,myhome

You can mix with numbers:
Less:
123.456.789.10,My1stOffice
321.654.987.01,2ndhome

Use of multiple tags:
Less:
123.456.789.10,MyOffice,MyLibrary
321.654.987.01,myhome,mylibrary

Hyphens - :
Less:
123.456.789.10,My-Office,My_Library
321.654.987.01,my-home,my-office

IPv6
Less:
2001:0db8:85a3:0000:0000:8a4e:0340:7444,MyOffice,MyLibrary
2001:0db8:85a3:0000:0000:8a2e:0370:7334,myhome,myoffice

Restriction:
* Whit spaces are not permitted.
* Special characters <*/+.&^#@=$~!>? are not permitted.

You can add as many tags for each IP you add as you like. Fail2ban natively will ignore text after a comma,

Warning: Failing to implements this method correctly could lock you out for 600s or per fail2ban default settings, if you do.. add your IP manually to:
/etc/fail2ban/jail.local

ignoreip = <Add_Your_IP_Address> 127.0.0.1/8 ::1

Or excute this command

Bash:
sed -i 's/ignoreip = /ignoreip = 1.1.1.1 /g' /etc/fail2ban/jail.local && service fail2ban restart
replace 1.1.1.1 with your current IP and keep spaces.


Plesk is not responsible for any workarounds that is not offically documented by Plesk Docs.

Tested on Fail2ban v 0.10.3
Plesk Component:
0.10.3.1-2.centos.7+p18.0.27.0+t200424.1018
 
Last edited:
Back
Top