Skip to content

Commit

Permalink
Add whitelist to acl on tcp request rejection
Browse files Browse the repository at this point in the history
  • Loading branch information
nuriel77 committed Jun 12, 2018
1 parent cce66e9 commit 2795b72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/loadbalancer/templates/haproxy.cfg.j2
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ frontend iri_front

# drop connections from user with more then 1000 requests in 5m
acl source_is_hacker src_http_req_cnt(iri_front) gt 1000
tcp-request content reject if source_is_hacker
tcp-request content reject if source_is_hacker !whitelist

# limit OPTIONS method because this is only used on browsers
acl options_method method OPTIONS
Expand Down

0 comments on commit 2795b72

Please sign in to comment.