• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Issue block per ip in firewall rules

Pavlo.UA

Basic Pleskian
Server operating system version
CentOS Linux 7.9.2009 (Core)
Plesk version and microupdate number
Plesk Obsidian Version 18.0.49
Hello all!)

I have a BIG 1 rule in my firewall, that blocks connections to server on mail ports (25,110,143,993,995,2525).
Why it is BIG? Because in this rule i have a large list of IP addresses and IP blocks/nets (like 46.148.40.0/24). I collect IP addresses which appears in fail2ban (recidive) list with more than 50 authentication failures per day.

Question:
Why somebody can still connect from IP addresses which are already in "banned" list in firewall rule?
Does firewall rule has an limit for IP addresses quantity? (may be limit reached and this rule doesn't work at all)
Does this logic works at all? (collect and ban IP's and IP blocks/nets)

It worked like a charm 2 years, but now I see connections from banned IP's ((

Thank you in advance.

P.S. the rule: Deny incoming from [many IP's] on ports [all mail ports with /tcp].
 
Are you using iptables? In that case, you could check with
# iptables --list
if the blocked IPs are all there. Are they?
 
Are you using iptables? In that case, you could check with
# iptables --list
if the blocked IPs are all there. Are they?

Thank you for fast reply! :)
Yes, I use iptables and they all are there... this one too:
DROP tcp -- 46.148.40.0/24 anywhere tcp dpt:smtp

But 12/26/2022 I added this subnet in firewall and 12/27/2022 I still see new connections from it. Today do not see already.
How can it be? Maybe these were not connections, but only attempts?
 
Back
Top