mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 01:45:54 +03:00
[GH-ISSUE #875] Help Forwarding to LAN #741
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#741
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mikeymop on GitHub (Feb 7, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/875
Checklist
What is troubling you?
I am running OMV 5.0 on a machine at port 90. This machine is running docker, which in turn is running npm.
My machine is located on my lan at
192.168.1.180and my router is forwarding ports 80, 81, 443 to192.168.1.180.I am running a few services on docker, for example portainer, which I can reach from my lan at
192.168.1.180:9000.My dns provider, fowards the following
A: subdomain.domain.com -> [external ip address]CNAME: portainer -> callisto.domain.comSide note: This configuration works for another docker host I have running on digitalocean, I want to bring these benefits to my own server running at home.
If I
docker execinto my npm container, I can ping192.168.1.180so I know that the npm container can see my host.In the npm gui, I tried to add a host
portainer2.domain.comand forward it to192.168.1.180port9000. I then flushed my dns cache and tried to browse to it. This results in a 404 error.I then used
docker inspectto find:I have adjusted
portainer2.domain.comto forward to both172.18.0.1port9000and172.18.0.2port9000and I get the same result.The only other solution I can think of, is adding CNAME records and port forward entries for each one of my services so that I can forward to
cname.domain.comhowever this is suboptimal because I would like to keep all of these ports closed on my router and funnel everything through 80, 443, and 81.Is there something I am missing in order to configure npm to forward external requests through my lan to the correct service?
Additionally, if it can work this way, I would like to also forward to subdomain to OMV which is running directly on my host (and not in docker) which is located at
192.168.1.180:90, since npm can see192.168.1.180I presume this would be possible however I have also not been able to get that to work.TLDR
What am I missing in order to correctly have npm (in docker) forward external requests through my lan to the correct service running on my host located at
192.168.1.180.Do I have to also forward ports from my router for each individual server?
@mikeymop commented on GitHub (Feb 10, 2021):
Marking this resolved, the issue was that my router was blocking loopbacks.
I found I was able to reach my hosts when outside of my LAN, however when inside of my LAN the requests were still blocked.
It turns out the Verizon G1000 Quantum Gateway blocks loopback requests and there is not an easy way to resolve this on the router itself.