-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Using failregex to ban using response's data #40
Labels
kind/enhancement
New feature or request
Comments
For now, there is no way to do this with this plugin. |
tomMoulard
changed the title
using failregex to ban multiple 400 errors
using failregex to ban using request's data
Aug 28, 2021
tomMoulard
changed the title
using failregex to ban using request's data
Using failregex to ban using request's data
Aug 28, 2021
tomMoulard
changed the title
Using failregex to ban using request's data
Using failregex to ban using response's data
Aug 28, 2021
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Ya, I looked at the source code after I asked. If I do not set any of those
options, it will literally block any connecting address after n attempts. I
don't know why I didn't think to look first.
…On Sat, Aug 28, 2021 at 8:52 PM Tom Moulard ***@***.***> wrote:
To paraphrase the plugin''s description on pilot
<https://pilot.traefik.io/plugins/605afbaaa5f67ab9a1b0e51c/fail2-ban> :
Blacklist (or whitelist) IP depending on some conditions
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#40 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABZBOZZGGJFD2Z3LBTCVDSTT7GVJJANCNFSM5C7FXMKA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
I had an unrelated question about the plugin's development. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there a way to ban using a failregex filter on an access log line?
I had fail2ban on my host protecting the docker proxy instance when i was using nginx-proxy. Here is the line from my custom filter
failregex = ^.*\s<HOST>.*"(GET|POST).*" (404|444|403|400) .*$
EDIT:
Does this plugin only ban according to urlregexp and if I leave it blank it blocks all access?
The text was updated successfully, but these errors were encountered: