As far as I have used fail2ban it doesn't support ignorecase in the failregex option in the filters.
It would be great to have a config option like "IGNORECASE = 1" to select if we want all our failregex to be case-sensitive or insensitive.
I have changed the file server/failregex.py:
diff failregex.py /usr/local/src/fail2ban-0.8.4/server/failregex.py
< self._regexObj = re.compile(regex, re.IGNORECASE)
> self._regexObj = re.compile(regex)
I'll try to make a patch with the option to make this feature,
Log in to post a comment.