mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 09:25:55 +03:00
[GH-ISSUE #2526] Client IP Not Forwarding Correctly in Version 2.9.19 #1764
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#1764
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 @iTABHayden on GitHub (Jan 8, 2023).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2526
jc21/nginx-proxy-manager:latestdocker image?NPM does not seem to be forwarding the client IP correctly in version 2.9.19
Nginx Proxy Manager Version:
2.9.19
I would expect NPM to forward the client IP address direct to the host either out of the box or using proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;, proxy_set_header X-Real-IP $remote_addr;, proxy_set_header X-Forwarded-Proto $scheme; header additions which it does not seem to be doing.
Operating System:
Debian 11
Docker version 20.10.22, build 3a2c30b
Additional context:
I can tell it isn't forwarding client IP's correctly as I can install a base version of NGINX on a Debian 11 machine, and it forwards them fine to all hosts. I add the header in under add location, add / and it still does not work. This is with any application I try.
@JustasStankunas commented on GitHub (Feb 7, 2023):
EDIT:
Soo it looks that this is not related to NPM (probably i just did not noticed this before.. It looks this is related to this - #180. when traffic is originating from same host as NPM container is running on.
noticed something interesting also. have a tailscale VPN client running as a service on the same host as NPM is running. If look into logs accessing any proxied service (for example NPM admin page) i can see in the logs thatclient is 172.20.0.1which is the gateway of the docker network that NPM is running in.this is internal traffic (no WWW apart for tailscale connection):tailscale client has IP of100.x.x.xtailscale endpoint is on the server with IP192.168.x.xnpm is on same server as tailscale endpoint -192.168.x.x:80(or:443) - docker subnet172.20.0.0/16haveproxy.lanconfigured in npm pointing to192.168.x.x:81(NPM admin page)tailscale client - accessproxy.lanin logs i can see thatclientis listed as172.20.0.1@github-actions[bot] commented on GitHub (Jan 30, 2024):
Issue is now considered stale. If you want to keep it open, please comment 👍
@github-actions[bot] commented on GitHub (Mar 17, 2025):
Issue was closed due to inactivity.