2013-01-31 19:39:59 +00:00
# Fail2Ban configuration file for roundcube web server
#
#
#
2013-07-09 16:48:12 +00:00
[INCLUDES]
before = common.conf
2013-01-31 19:39:59 +00:00
[Definition]
2013-11-12 22:16:45 +00:00
failregex = ^\s*(\[\])?(%(__hostname)s roundcube: IMAP Error)?: (FAILED login|Login failed) for .*? from <HOST>(\. .* in .*?/rcube_imap\.php on line \d+ \(\S+ \S+\))?$
2013-01-31 19:39:59 +00:00
ignoreregex =
2013-11-12 07:57:01 +00:00
# DEV Notes:
#
# Source: https://github.com/roundcube/roundcubemail/blob/master/program/lib/Roundcube/rcube_imap.php#L180
#
# Part after <HOST> comes straight from IMAP server up until the " in ....."
# Earlier versions didn't log the IMAP response hence optional.
#
# DoS resistance:
#
# Assume that the user can inject "from <HOST>" into the imap response
# somehow. Write test cases around this to ensure that the combination of
# arbitary user input and IMAP response doesn't inject the wrong IP for
# fail2ban
#
# Author: Teodor Micu & Yaroslav Halchenko & terence namusonge & Daniel Black