I'm running Nginx reverse proxy using proxy_pass
directive from ngx_http_proxy_module. Is there a way to forbid access to certain backend IP address ranges? I've tried this but that doesn't seem to work.
Asked
Active
Viewed 199 times
0

jreisinger
- 1,493
- 1
- 10
- 21
-
Hi, yes possible and easy to do: https://www.cyberciti.biz/faq/linux-unix-nginx-access-control-howto/ – J-Jacques M Feb 22 '20 at 12:22
-
Hi @Jean-JacquesMOIROUX, your link is about denying requests based on client IP addresses. I'm interested in backend (upstream) IP addresses. – jreisinger Feb 24 '20 at 18:13
-
hum... I got the solution on the response of the following question: what the difference between a "client IP" and a "backend IP"? when you got he answer you'll find the solution. Enjoy – J-Jacques M Feb 24 '20 at 22:15