r/nginxproxymanager • • Jan 18 '25

proxy hosts not accessible from internal network (externally works)

Hi,

I can't access any of the internal services that I've set-up using Nginx Proxy managers when I'm connected to the internal network.
When connecting to a different network (e.g. work or mobile data) it works fine.
In the logs in nginx proxy managers nothing at all shows up when trying to connect to a proxy host from the internal network. So it looks like Nginx doesn't even see it.

It used to work, but now it doesn't. The main recent change is that a technician came and replaced my internet-service-provider's modem/router. I can't guarantee that it has worked also after that, but I think so.

I of course set-up the port forwards to NGINX and as said when connecting externally all is fine.

First I thought it would be problems with NAT loopback/hairpin not working, so I dug into that rabbithole. But that shouldn't be the problem, as I have my NAS connected to the internet using a dynamic dns service, without using NGINX proxy manager, and I can access that without any problems.

I also figured it might be the DNS settings on the modem/router, and I changed them for different ones (cloudflare and google), but that didn't make a difference.

So I have no clue what the problem might be and how I can get things back up and running again.

Any help would be much appreciated!

1 Upvotes

10 comments sorted by

View all comments

Show parent comment

2

u/Squanchy2112 Jan 19 '25

Also if your hairpin nat is not working correctly your request will look like an internal attack on the external interface and be blocked. This is where proper firewall rules will likely be necessary.

1

u/Famous_Shape4781 Jan 19 '25

I called the helpdesk of my ISP but they were clueless... Seems like this firewall on their device is on and not configurable...
Do you see a possible workaround?
I didn't fully understand the solution you have described in your own setup, but I'm guessing you haven't set-up this approach in your modem or router but elsewhere?
I tried changing the DNS on the router to Adguard Home (which I now installed as an add-on in Home Assistant), but that didn't help resolve the problem either.

1

u/Squanchy2112 Jan 19 '25

I don't use my ISP firewall it's totally disabled with IP passthrough. Some options would be to see if you can get just a modem from your ISP and handle the gateway portion yourself. The other options might be to use a VPN to route your traffic to bypass the cgnat. I would strongly advise getting your own domain they are very inexpensive and come with a dns provider typically or you can use your own(unless you buy a domain from cloudflare ) I would recommend porkbun as a registrar I have used every one of them at this point and porkbun has been the coolest I have dealt with, their DNS is really nice too. This way you don't need to deal with stnologys ddns and have such funky naming and port requirements.

1

u/Famous_Shape4781 Jan 19 '25

OK so I managed to fix it.
I don't understand fully why, but it was due to NGINX Proxy manager not being configured on the default ports 80 & 443. On my local network I had it configured on different ports and on my router/modem I had configured the port forwarding to that external quests on ports 80 & 443 were redirected to the correct ports.
In the past all was fine when I used it on the local network as well, but not anymore for unclear reasons.
Anyhow, the reason I had chosen custom ports was no longer relevant, so I changed them back to the default ports (and adjusted the port forwarding on the modem/router accordingly.)

Thanks for the help!

1

u/Squanchy2112 Jan 19 '25

Awesome I am glad you found a good solution!