Welcome! Log In Create A New Profile


Reverse proxy

Posted by protoss666 
Reverse proxy
November 08, 2020 02:14PM
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:

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?


Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 60
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready