regex - Regexp: ProFTPD auth-logs -



regex - Regexp: ProFTPD auth-logs -

i've configurated proftpd log authentifications on plesk powered server. setting not set default since plesk 10 (whyever...). want configure fail2ban, observe unsuccessful login-attempts brute forcefulness prevention.

/etc/proftpd.include:

extendedlog /var/log/proftpd/auth.log auth auth logformat auth "%v [%h] %s"

example of unsuccessfull login (530):

/var/log/proftpd/auth.log:

proftpd [12.89.47.3] 331 proftpd [12.89.47.3] 530

what's right regexp fail2ban ? configuration seems not match pattern:

/etc/fail2ban/filter.d/proftpd.conf:

failregex = proftpd(.)+\[<host>\] 530$

<host> seems fail2ban variable, , $ ends rule (if want set several rules within failregex = variable).

for me next working on plesk 10.4.

proftpd.include:

extendedlog /var/log/proftpd/auth.log auth auth logformat auth "%v %t \"%r\" [%h] %s"

/etc/fail2ban/filter.d/proftpd.conf:

failregex = \[<host>\]\s+530$

regex linux plesk

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -