-
Hello! I'm configuring fail2ban for a server, but after creating a custom filter, under /etc/fail2ban/filter.d/ClimatePlatform.conf, I get this error:
This is the custom filter: [Definition]
failregex = ^Login Failed invalidUser IP:\[<HOST>\].*$
ignoreregex = And here's what I've added to the jail.local: [ClimatePlatform]
enabled = true
filter = /filter.d/ClimatePlatform.conf
logpath = /var/www/DFGE_Test/AccessLogs/Log.txt On the filter I've tried both with /filter.d/ and without it, meaning "filter = ClimatePlatform.conf" The fail2ban service is being run by the root user, so should not be an access issue. Please help! Best regards, dasdsa |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi, dasdsa, What an odd name, but who am I to judge? :-)
You did not provide us with your log file, but somehow I can imagine it something like-
So you would need this-
Please, dasdsa, let us know how it works for you. Many thanks, |
Beta Was this translation helpful? Give feedback.
-
You don't really need a filter in this case (simply use Back to the issue - the path to filter is absolute in your case, just use name of filter: - filter = /filter.d/ClimatePlatform.conf
+ filter = ClimatePlatform or even remove this line, because by default name of filter is equal name of jail. |
Beta Was this translation helpful? Give feedback.
Hi, dasdsa,
What an odd name, but who am I to judge? :-)
You did not provide us with your log file, but somehow I can imagine it something like-
So you would need this-
Login Failed invalidUser IP:\[<HOST>\].*$
Instead your "jail.local" custom entry reference just have to match a file with th…