gennolo
Basic Pleskian
Hi all,
I have enabled fail2ban with basic Plesk settings , including "plesk-proftpd" jail.
According to the jail rule :
It should ban IP address when they try 5+ times to login on FTP port with wrong credentials.
However, every morning I find in my secure log those kind of recods :
As you can see there are more than 5 attempt in a short range of time...
The "attacker" IP is always the same, so I guess there's something that prevent the rule to be applied.
Maybe the rule is bypassed if the login is tried to a non-existant user ?
If so, how can I add that kind of rule ?
FYI - fail2ban is running properly because other jails works fine (like the "recidive" or the "apache") as I am able to see some IPs gets banned daily.
Thank you in advance.
I have enabled fail2ban with basic Plesk settings , including "plesk-proftpd" jail.
According to the jail rule :
Code:
[plesk-proftpd]
enabled = true
filter = proftpd
action = iptables-multiport[name="plesk-proftpd", port="ftp,ftp-data,ftps,ftps-data"]
logpath = /var/log/secure
maxretry = 5
It should ban IP address when they try 5+ times to login on FTP port with wrong credentials.
However, every morning I find in my secure log those kind of recods :
Code:
Aug 9 15:37:56 hostname proftpd[76927]: 127.0.0.1 (attacker.ip.here[attacker.ip.here]) - USER anonymous: no such user found from attacker.ip.here [attacker.ip.here] to my.machine.ip.here:21
Aug 9 15:38:04 hostname proftpd[76966]: 127.0.0.1 (attacker.ip.here[attacker.ip.here]) - USER www: no such user found from attacker.ip.here [attacker.ip.here] to my.machine.ip.here:21
Aug 9 15:38:14 hostname proftpd[77005]: 127.0.0.1 (attacker.ip.here[attacker.ip.here]) - USER www: no such user found from attacker.ip.here [attacker.ip.here] to my.machine.ip.here:21
Aug 9 15:38:16 hostname proftpd[77014]: 127.0.0.1 (attacker.ip.here[attacker.ip.here]) - USER www: no such user found from attacker.ip.here [attacker.ip.here] to my.machine.ip.here:21
Aug 9 15:38:19 hostname proftpd[77026]: 127.0.0.1 (attacker.ip.here[attacker.ip.here]) - USER www: no such user found from attacker.ip.here [attacker.ip.here] to my.machine.ip.here:21
Aug 9 15:38:20 hostname proftpd[77031]: 127.0.0.1 (attacker.ip.here[attacker.ip.here]) - USER www: no such user found from attacker.ip.here [attacker.ip.here] to my.machine.ip.here:21
Aug 9 15:38:23 hostname proftpd[77042]: 127.0.0.1 (attacker.ip.here[attacker.ip.here]) - USER www: no such user found from attacker.ip.here [attacker.ip.here] to my.machine.ip.here:21
Aug 9 15:38:24 hostname proftpd[77055]: 127.0.0.1 (attacker.ip.here[attacker.ip.here]) - USER www: no such user found from attacker.ip.here [attacker.ip.here] to my.machine.ip.here:21
Aug 9 15:38:27 hostname proftpd[77058]: 127.0.0.1 (attacker.ip.here[attacker.ip.here]) - USER www: no such user found from attacker.ip.here [attacker.ip.here] to my.machine.ip.here:21
Aug 9 15:38:28 hostname proftpd[77069]: 127.0.0.1 (attacker.ip.here[attacker.ip.here]) - USER www: no such user found from attacker.ip.here [attacker.ip.here] to my.machine.ip.here:21
Aug 9 15:38:30 hostname proftpd[77076]: 127.0.0.1 (attacker.ip.here[attacker.ip.here]) - USER www: no such user found from attacker.ip.here [attacker.ip.here] to my.machine.ip.here:21
Aug 9 15:38:33 hostname proftpd[77085]: 127.0.0.1 (attacker.ip.here[attacker.ip.here]) - USER www: no such user found from attacker.ip.here [attacker.ip.here] to my.machine.ip.here:21
Aug 9 15:38:35 hostname proftpd[77089]: 127.0.0.1 (attacker.ip.here[attacker.ip.here]) - USER www: no such user found from attacker.ip.here [attacker.ip.here] to my.machine.ip.here:21
Aug 9 15:38:36 hostname proftpd[77099]: 127.0.0.1 (attacker.ip.here[attacker.ip.here]) - USER www: no such user found from attacker.ip.here [attacker.ip.here] to my.machine.ip.here:21
Aug 9 15:38:38 hostname proftpd[77104]: 127.0.0.1 (attacker.ip.here[attacker.ip.here]) - USER www: no such user found from attacker.ip.here [attacker.ip.here] to my.machine.ip.here:21
Aug 9 15:38:40 hostname proftpd[77107]: 127.0.0.1 (attacker.ip.here[attacker.ip.here]) - USER www: no such user found from attacker.ip.here [attacker.ip.here] to my.machine.ip.here:21
Aug 9 15:38:53 hostname proftpd[77153]: 127.0.0.1 (attacker.ip.here[attacker.ip.here]) - USER www: no such user found from attacker.ip.here [attacker.ip.here] to my.machine.ip.here:21
Aug 9 15:38:57 hostname proftpd[77179]: 127.0.0.1 (attacker.ip.here[attacker.ip.here]) - USER www: no such user found from attacker.ip.here [attacker.ip.here] to my.machine.ip.here:21
Aug 9 15:39:09 hostname proftpd[77238]: 127.0.0.1 (attacker.ip.here[attacker.ip.here]) - USER www: no such user found from attacker.ip.here [attacker.ip.here] to my.machine.ip.here:21
Aug 9 15:39:11 hostname proftpd[77246]: 127.0.0.1 (attacker.ip.here[attacker.ip.here]) - USER www: no such user found from attacker.ip.here [attacker.ip.here] to my.machine.ip.here:21
Aug 9 15:39:13 hostname proftpd[77253]: 127.0.0.1 (attacker.ip.here[attacker.ip.here]) - USER www: no such user found from attacker.ip.here [attacker.ip.here] to my.machine.ip.here:21
Aug 9 15:39:15 hostname proftpd[77259]: 127.0.0.1 (attacker.ip.here[attacker.ip.here]) - USER www: no such user found from attacker.ip.here [attacker.ip.here] to my.machine.ip.here:21
Aug 9 15:39:18 hostname proftpd[77271]: 127.0.0.1 (attacker.ip.here[attacker.ip.here]) - USER www: no such user found from attacker.ip.here [attacker.ip.here] to my.machine.ip.here:21
Aug 9 15:39:20 hostname proftpd[77276]: 127.0.0.1 (attacker.ip.here[attacker.ip.here]) - USER www: no such user found from attacker.ip.here [attacker.ip.here] to my.machine.ip.here:21
Aug 9 15:39:32 hostname proftpd[77320]: 127.0.0.1 (attacker.ip.here[attacker.ip.here]) - USER www: no such user found from attacker.ip.here [attacker.ip.here] to my.machine.ip.here:21
Aug 9 15:39:33 hostname proftpd[77325]: 127.0.0.1 (attacker.ip.here[attacker.ip.here]) - USER www: no such user found from attacker.ip.here [attacker.ip.here] to my.machine.ip.here:21
As you can see there are more than 5 attempt in a short range of time...
The "attacker" IP is always the same, so I guess there's something that prevent the rule to be applied.
Maybe the rule is bypassed if the login is tried to a non-existant user ?
If so, how can I add that kind of rule ?
FYI - fail2ban is running properly because other jails works fine (like the "recidive" or the "apache") as I am able to see some IPs gets banned daily.
Thank you in advance.