Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Horde filter for Horde 5.2 #1862

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Updated Horde filter for Horde 5.2 #1862

wants to merge 1 commit into from

Conversation

wb7
Copy link

@wb7 wb7 commented Aug 13, 2017

Updated filter from my environment; I am using Horde 5.2 and this works for me pretty good.

Copy link
Contributor

@sebres sebres left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additionaly the test cases are obligatory, thus please extend https://github.com/fail2ban/fail2ban/blob/master/fail2ban/tests/files/logs/horde with new entry corresponding new format (and json-record).

@@ -4,7 +4,7 @@
[Definition]


failregex = ^ HORDE \[error\] \[(horde|imp)\] FAILED LOGIN for \S+ \[<HOST>\](\(forwarded for \[\S+\]\))? to (Horde|{[^}]+}) \[(pid \d+ )?on line \d+ of \S+\]$
failregex = ^ ERR: HORDE \[(horde|imp)\] FAILED LOGIN for \S+ to (horde|{[^}]+}) \((<HOST>)\) \[(pid \d+ )?on line \d+ of \S+\]$
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add second failregex after your new one (for the backwards compatibility to previous versions)...

failregex = ^ ERR: HORDE ... (1st regex)
            ^ HORDE ... (2nd regex)

@sebres
Copy link
Contributor

sebres commented Sep 5, 2017

Still interested to complete this?

  1. Both regex (old also for the purpose of backwards compatibility)
  2. extend https://github.com/fail2ban/fail2ban/blob/master/fail2ban/tests/files/logs/horde with log-message in new format (with match-JSON string).

At least please provide here a short excerpt of the log file with new log format.

@sebres sebres force-pushed the master branch 5 times, most recently from fe8a9d2 to 9d77fb2 Compare November 3, 2020 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants