nginx ngx_http_limit_req_module and PROXY PROTOCOL

Marcello Lorenzi cello86 at gmail.com
Thu May 23 08:49:13 UTC 2024


Hi All,
we have configured a reverse proxy behind an haproxy load balancer and we
used PROXY PROTOCOL to forward the real IP to the backends. All worked fine
but if we enabled the ngx_http_limit_req_module and we based our
limit_req_zone rule to the $binary_remote_addr we noticed that all requests
received from the haproxy server have been blocked.

Do we have to use the $proxy_remote_addr variable to avoid this issue? We
tried to implement the variable but the block didn't work.

Thanks,
Marcello
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://freenginx.org/pipermail/nginx/attachments/20240523/00f4065a/attachment.htm>


More information about the nginx mailing list