LawsHosting
Verified User
The ProFTP log (/var/log/proftpd/auth.log) doesn't include anything interesting for fail2ban filters to work with
Here is the proftpd filter for fail2ban
Basically, why does /var/log/proftpd/auth.log only include the login details and not the failed details too?
This needs work too as f2b doesn't catch anything:
proftpd.conf said:ExtendedLog /var/log/proftpd/auth.log AUTH auth
while /var/log/auth.log does include one of the f2b's regex:/var/log/proftpd/auth.log said:ProFTPd [10517] <IP> [20/May/2015:10:53:11 +0100] "USER guest123" 331
ProFTPd [10517] <IP> [20/May/2015:10:53:12 +0100] "PASS (hidden)" 530
/var/log/auth.log said:proftpd[12040]: <SERVER IP> (<IP>[<IP>]) - USER <USER>: no such user found from <IP> [<IP> to ::ffff:<SITE IP>:21
Here is the proftpd filter for fail2ban
Code:
\(\S+\[<HOST>\]\)[: -]+ - USER \S+: no such user found from \S+ \[\S+\] to \S+:\S+ *$\(\S+\[<HOST>\]\)[: -]+ USER \S+ \(Login failed\): .*$
\(\S+\[<HOST>\]\)[: -]+ SECURITY VIOLATION: \S+ login attempted\. *$
\(\S+\[<HOST>\]\)[: -]+ Maximum login attempts \(\d+\) exceeded *$
Basically, why does /var/log/proftpd/auth.log only include the login details and not the failed details too?
This needs work too as f2b doesn't catch anything:
Code:
\(\S+\[<HOST>\]\)[: -]+ - USER \S+: no such user found from \S+ \[\S+\] to \S+:\S+ *$