Skip to content

apache-auth jail is missing failures #3513

Closed Answered by sebres
dleer asked this question in Q&A
Discussion options

You must be logged in to vote

It looks like the _apache_error_client definition deviates a bit here from it declared in

_apache_error_client = <apache-prefix>\[(:?error|<apache-pref-ignore>\S+:\S+)\]( \[pid \d+(:\S+ \d+)?\])? \[client <HOST>(:\d{1,5})?\]

This one must work for your prefix format:

fail2ban-regex /tmp/log 'apache-auth[_apache_error_client="(?:\[\] )?\[(?:auth_basic:)?(:?error|<apache-pref-ignore>\S+:\S+)\]( \[pid \d+(:\S+ \d+)?\])? \[remote <ADDR>(:\d{1,5})?\]"]'

Either set it in Definition or DEFAULT section of filter.d/apache-common.local:

[Definition]
_apache_error_client = (?:\[\] )?\[(?:auth_basic:)?(:?error|<apache-p…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by sebres
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants