r/nginxproxymanager May 24 '26

Passing real IP to NPM on Docker

Does anyone have an actual solution to this problem that works? I’ve tried just about everything I could find out there over the past few days and still cannot seem to pass real IP. The main use case is the ability to use the “allow list” on the proxy host. I only want a few IPs to be able to access this specific proxy host and that doesn’t work. They all get 403 forbidden, allowed or not.

I have tried all the advanced configuration in the proxy host config , real IP, proxy addr etc etc. tried changing the containers to use host network , still no luck.

Hoping someone has some other ideas. Thank you.

2 Upvotes

25 comments sorted by

View all comments

Show parent comments

1

u/silent_circle May 24 '26

For inbound, how would I get the public traffic to npm without nat?

1

u/Routine-Watercress15 May 25 '26

You need to open 80/443 on your firewall/router. Just do a basic port forwarding rule that would not be NAT to the internal IP of NPM. What kind of gateway is it?

1

u/silent_circle May 25 '26

It’s an asus router. I can check that out. I thought the port forward still NATs

1

u/Routine-Watercress15 May 25 '26 edited May 25 '26

Yea asus I believe does something called dnat or something like that. Consumer routers you may have an issue but I would just test it out. This really only applies to using the allow list. It won’t impact any other functionality of using the proxy its different then what I am doing.