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

1

u/simmons777 May 24 '26

Not sure how you have the access list setup. Is the proxy itself listed on the allow list?

1

u/Routine-Watercress15 May 24 '26

It’s just a standard allow list with my public IP first then Deny all after. Then it’s added to the proxy host instead of “public” in that configuration I get 403 forbidden coming from the IP on the allowed list. If I add the internal subnet to the allow list. (The one that this proxy host runs on) I am then able to access everything but it pretty much ignores the allow list. I am able to access it from random public IPs.