-
Notifications
You must be signed in to change notification settings - Fork 3k
FORBIDDEN: Despite Documentation! Creating "Local only" Access List, requires PUBLIC IPs ONLY #1380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Possible duplicate |
In my situation, the NPM gives the following error message and doesn't recognize that the client is connected locally: |
Did you find a solution for your "local access" problem? I have a similar problem, NPM is not able to access only the local nework without going through the "outside" internet. Their are some subdomains that would rather keep outside acces. |
I struggled with this too, but after thinking about this for a while I'm fairly certain this issue has nothing to do with NPM itself but rather with the router/networking setup. Basically, the typical setup (as far as I can tell) uses port forwarding configured in one's home router and a DNS entry some domain that uses the router's public IP (e.g. using some dynamic DNS service). As far as I understand in this setup NPM will never be able to receive the local IP address because every connection to NPM resolves to the router's IP which in turn creates a connection to NPM. So it absolutely makes sense to see the router's public IP address in the logs as it's where the connection is originating from NPM's point of view. To be honest, I think there's nothing NPM can do to fix this. It does exactly what it's made for: configure a NGINX instance as a reverse proxy. But NPM can't configure your local network to route requests directly to itself without going through the router's public IP and port forwarding. See also: #1105 (comment)
|
So, I was trying to figure out the same. I wanted local access to some URLs only. And indeed, with normal settings this will not work because NPM will always receive the Public IP as the traffic is routed through a DNS thats located outside your network. However, I just found a way to make it work for me. This results in the Access List working as intended. This should work with any locally hosted DNS service that allows you to do custom routes. |
Interesting find! I’m also using Adguard, so could you please explain it a little more in detail how to do it. Could you please give an example how to configure adguard. |
Sure thing, its pretty simple. Put your desired URL, or a wildcard and put it in a DNS rewrite in Adguard. i.e.: *.myddns.duckdns.org and simply rewrite it to the IP where NPM is running in your local network. |
@almostserious thanks for sharing I will give it a try! |
Unfortunately it isn’t working for me. I have configured exactly as you described, but it isn’t working. |
Issue is now considered stale. If you want to keep it open, please comment 👍 |
Issue was closed due to inactivity. |
Checklist
jc21/nginx-proxy-manager:latest
docker image?Describe the bug
Despite what the documentation say, adding local IPs, subnets, and local gateway is NOT working in my case!.
i used the following
docker-compose.yaml
file to do the installation:The conf file:
Nginx Proxy Manager Version
I pulled the latest docker image:
docker pull jc21/nginx-proxy-manager:latest
Expected behavior
its expected that the page would load without getting 403 ERROR forbidden!!!.
Screenshots
Operating System
Raspbian Os 64x, docker & Portainer.
Additional context
The text was updated successfully, but these errors were encountered: