Quantcast
Channel: Nginx Forum - Other discussion
Viewing all articles
Browse latest Browse all 972

Reverse proxy

$
0
0
Hi,
I am setting up a reverse proxy in freebsd with nginx.
How can I deny access to a specific IP on my internal network?
In my case I have defined the following within the location / parameter:


location / {
include snippets/proxy-params.conf;
include snippets/internal-access-rules.conf;
proxy_pass http://107.XXX.XXX.XXX/;
}


Where in "internal-access-rules.conf" I have placed:

allow 192.168.1.0/24;
deny all;

Then I restart the nginx.
When trying to access the domain from the blocked network or from any other network I can access without problems when I should be blocked. What could be happening?

Regards

Diego

Viewing all articles
Browse latest Browse all 972

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>