You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The diff for stock nginx-limit-req filter may look like this:
failregex = ^%(__prefix_line)slimiting requests, excess: [\d\.]+ by zone "(?:%(ngx_limit_req_zones)s)", client: <HOST>,
+ ^%(__prefix_line)slimiting connections by zone "(?:%(ngx_limit_req_zones)s)", client: <ADDR>,
As long as it is not extended yet, one can achieve this with local-config /etc/fail2ban/filter.d/nginx-limit-req.local:
[Definition]failregex = %(known/failregex)s
^%(__prefix_line)slimiting connections by zone "(?:%(ngx_limit_req_zones)s)", client: <ADDR>,
hi team, fail2ban does the job well for limit based on
limit_req_zone
but i am struggling to banlimit_conn_zone
dos'ershow can one do that?
the log for rate limited by connection zone looks like this
it is limited by
limit_conn
directive in nginx configmost limit_req and limit_conn are implemented together, but jail exists only for limit_req
help apprciated
The text was updated successfully, but these errors were encountered: