• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue SASL LOGIN authentication failed: authentication failure

xemorytr

Basic Pleskian
Server operating system version
Ubuntu 22.04.2 LTS
Plesk version and microupdate number
Plesk Obsidian Version 18.0.52
Hello everyone,
Although fail2ban is active, it does not block.
I always get attacked like this.
Which way do you follow to solve this and what do you do.
Thanks for a solution.

2023-05-02 13:46:16WARNINGpostfix/smtpd [614764]warning: unknown[46.148.40.155]: SASL LOGIN authentication failed: authentication failure
2023-05-02 13:45:55WARNINGpostfix/smtpd [614661]warning: unknown[46.148.40.157]: SASL LOGIN authentication failed: authentication failure
2023-05-02 13:45:48WARNINGpostfix/smtpd [614764]warning: unknown[46.148.40.150]: SASL LOGIN authentication failed: authentication failure
2023-05-02 13:44:35WARNINGpostfix/smtpd [614764]warning: unknown[46.148.40.161]: SASL LOGIN authentication failed: authentication failure
2023-05-02 13:43:54WARNINGpostfix/smtpd [614661]warning: unknown[46.148.40.164]: SASL LOGIN authentication failed: authentication failure
2023-05-02 13:43:34WARNINGpostfix/smtpd [614764]warning: unknown[46.148.40.160]: SASL LOGIN authentication failed: authentication failure
 

Attachments

  • indir (1).png
    indir (1).png
    140.7 KB · Views: 12
  • indir (2).png
    indir (2).png
    149.6 KB · Views: 11
  • indir.png
    indir.png
    129.5 KB · Views: 11
The sources of the attack are distributed over different IP address. For that reason the threshold for Fail2Ban for repeatedly wrong login attempts are not reached. You can try to reduce the threshold to 2 or to the extreme 1 so that an attacker will be blocked right after the first wrong login attempt, but even in that case the attacker can still try to login coming from a different IP.
 
The sources of the attack are distributed over different IP address. For that reason the threshold for Fail2Ban for repeatedly wrong login attempts are not reached. You can try to reduce the threshold to 2 or to the extreme 1 so that an attacker will be blocked right after the first wrong login attempt, but even in that case the attacker can still try to login coming from a different IP.
in this case 1.
but there are constant attacks from different ropes and it does not block.
Is there a solution to completely eliminate this?
 
Do you think this rule can prevent this?
It is not active now, do I need to activate it?
 

Attachments

  • Screenshot_1.png
    Screenshot_1.png
    14.2 KB · Views: 11
If all the attacks are coming from the same network, such as it seems 46.148.40.* is one of them, you could block that whole subnet by an iptables rule and do the same with other frequently used network segments. But query first if these IPs are not belonging to a commonly used server farm (such as Google, Amazon etc.), because a general IP address block would also block legitimate traffic. You should in such a case also learn how to unblock IPs or subnets that you blocked before, it will be needed. You can try to create a Plesk Firewall rule for it or use iptables directly. As there are so many options, this here cannot be the place to explain iptables in depth, but there are lots of examples on the Internet how to use it.
 
Back
Top