Code: Select all
Sep 16 10:57:47 s3 proftpd[813674]: 10.10.10.10 (119.18.153.66[119.18.153.66]) - USER admin (Login failed): Incorrect password
Sep 16 10:57:54 s3 proftpd[813766]: 10.10.10.10 (119.18.153.66[119.18.153.66]) - USER admin (Login failed): Incorrect password
Sep 16 10:57:58 s3 proftpd[813980]: 10.10.10.10 (119.18.153.66[119.18.153.66]) - USER admin (Login failed): Incorrect password
Sep 16 10:58:01 s3 proftpd[814166]: 10.10.10.10 (119.18.153.66[119.18.153.66]) - USER admin (Login failed): Incorrect password
Sep 16 10:58:05 s3 proftpd[814293]: 10.10.10.10 (119.18.153.66[119.18.153.66]) - USER admin (Login failed): Incorrect password
Sep 16 10:58:09 s3 proftpd[814384]: 10.10.10.10 (119.18.153.66[119.18.153.66]) - USER admin (Login failed): Incorrect password
Sep 16 10:58:12 s3 proftpd[814530]: 10.10.10.10 (119.18.153.66[119.18.153.66]) - USER admin (Login failed): Incorrect password
Sep 16 10:58:16 s3 proftpd[814630]: 10.10.10.10 (119.18.153.66[119.18.153.66]) - USER admin (Login failed): Incorrect password
Sep 16 10:58:19 s3 proftpd[814721]: 10.10.10.10 (119.18.153.66[119.18.153.66]) - USER admin (Login failed): Incorrect password
Sep 16 10:58:22 s3 proftpd[814846]: 10.10.10.10 (119.18.153.66[119.18.153.66]) - USER admin (Login failed): Incorrect password
Sep 16 10:58:26 s3 proftpd[814933]: 10.10.10.10 (119.18.153.66[119.18.153.66]) - USER admin (Login failed): Incorrect password
Sep 16 10:58:29 s3 proftpd[815019]: 10.10.10.10 (119.18.153.66[119.18.153.66]) - USER admin (Login failed): Incorrect password
This is the line in regex.pm that should block it.
Code: Select all
if (($config{LF_FTPD}) and ($globlogs{FTPD_LOG}{$lgfile}) and ($line =~ /^(\S+|\S+\s+\d+\s+\S+) \S+ proftpd\[\d+\]:? \S+ \([^\[]+\[(\S+)\]\)( -)?:? - USER (\S*) \(Login failed\): Incorrect password\./)) {
$ip = $2; $acc = $4; $ip =~ s/^::ffff://; $acc =~ s/:$//g;
if (checkip(\$ip)) {return ("Failed FTP login from","$ip|$acc","ftpd")} else {return}
}