nginx-proxy-manager icon indicating copy to clipboard operation
nginx-proxy-manager copied to clipboard

IP:PORT redirect to Proxy Host

Open zak-admin opened this issue 3 years ago • 2 comments

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • Yes
  • Are you sure you're not using someone else's docker image?
    • Yes
  • Have you searched for similar issues (both open and closed)?
    • No

Describe the bug

After I configured proxy host yet the website is available in IP-ADDRESS:PORT. I am not sure whether my thinking is correct. Can this be a security issue.

Expected behavior

Let IP-ADDRESS:PORT redirect automatically to the relevant proxy host domain configured.

Additional context

I was using podman on debian 11

zak-admin avatar Aug 14 '22 11:08 zak-admin

I would say its not a huge security issue as it stands. However, many scans for audit purposes would say otherwise. Therefore the ports should probably be blocked from outside the docker host in these circumstances, so allowing only the NPM HTTP/HTTPS ports which do have some additional security, namely, some known attacks being blocked and any ACLs setup.

the1ts avatar Aug 15 '22 09:08 the1ts

Just reading again, are you saying that you are proxying for example test.example.com to 192.168.0.166:7233 but 192.168.0.166:7233 is still available to hit?

the1ts avatar Aug 27 '22 23:08 the1ts

@the1ts Thats actually the problem which i am running into. Any suggestion or solution on how to fix this?

mouledla avatar Oct 17 '22 22:10 mouledla

As said before, the only thing I can think of is, on the host running docker, block all but the internal IP of the router from getting to the NPM port on the host. Can't be more specific since everyone's ports and IPs are different.

the1ts avatar Oct 18 '22 07:10 the1ts

Issue is now considered stale. If you want to keep it open, please comment :+1:

github-actions[bot] avatar Feb 12 '24 01:02 github-actions[bot]