[GH-ISSUE #2560] Nginx Proxy Manager doesn't pass the Real IP of the client #1783

Closed
opened 2026-02-26 07:32:27 +03:00 by kerem · 2 comments
Owner

Originally created by @KaspianDev on GitHub (Jan 25, 2023).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2560

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)?
    • Yes

Describe the bug

I have a reverse proxy set up for my cockpit.
I'm using following configuration:
image
image
image

Nginx Proxy Manager Version

v2.9.19

To Reproduce
Steps to reproduce the behavior:

  1. Install cockpit (but any application should work)
  2. Set up a reverse proxy with my configuration
  3. Login to cockpit and notice that it shows container's IP.

Expected behavior

I should see my own IP address in logs.

Screenshots

See Describe the bug

Operating System

Rocky linux

Additional Information
The address that shows in cockpit logs is the address from nginxproxymanager docker network 172.25.0.X

Originally created by @KaspianDev on GitHub (Jan 25, 2023). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2560 <!-- Are you in the right place? - If you are looking for support on how to get your upstream server forwarding, please consider asking the community on Reddit. - If you are writing code changes to contribute and need to ask about the internals of the software, Gitter is the best place to ask. - If you think you found a bug with NPM (not Nginx, or your upstream server or MySql) then you are in the *right place.* --> **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)? - Yes **Describe the bug** <!-- A clear and concise description of what the bug is. --> I have a reverse proxy set up for my cockpit. I'm using following configuration: ![image](https://user-images.githubusercontent.com/34658474/214516179-58997962-8d9c-455c-a9b8-8b896a5a2a26.png) ![image](https://user-images.githubusercontent.com/34658474/214516226-eeef4107-b798-4606-ab8c-a16acc7f0df4.png) ![image](https://user-images.githubusercontent.com/34658474/214516584-b1728fb7-95fa-4e3e-abfe-729343f8c719.png) **Nginx Proxy Manager Version** <!-- What version of Nginx Proxy Manager is reported on the login page? --> v2.9.19 **To Reproduce** Steps to reproduce the behavior: 1. Install cockpit (but any application should work) 2. Set up a reverse proxy with my configuration 3. Login to cockpit and notice that it shows container's IP. **Expected behavior** <!-- A clear and concise description of what you expected to happen. --> I should see my own IP address in logs. **Screenshots** <!-- If applicable, add screenshots to help explain your problem. --> See Describe the bug **Operating System** <!-- Please specify if using a Rpi, Mac, orchestration tool or any other setups that might affect the reproduction of this error. --> Rocky linux **Additional Information** The address that shows in cockpit logs is the address from nginxproxymanager docker network 172.25.0.X
kerem 2026-02-26 07:32:27 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@unknown-qp commented on GitHub (Jan 29, 2023):

hi @KaspianDev, are you fix this problem? if you solved this problem, can you help me and explain the way for me? thanks.

<!-- gh-comment-id:1407647033 --> @unknown-qp commented on GitHub (Jan 29, 2023): hi @KaspianDev, are you fix this problem? if you solved this problem, can you help me and explain the way for me? thanks.
Author
Owner

@KaspianDev commented on GitHub (Jan 29, 2023):

hi @KaspianDev, are you fix this problem? if you solved this problem, can you help me and explain the way for me? thanks.

I was using pterodactyl, first I had to add IP to trusted proxies.

Next I had to follow cloudflare nginx config.

<!-- gh-comment-id:1407750657 --> @KaspianDev commented on GitHub (Jan 29, 2023): > hi @KaspianDev, are you fix this problem? if you solved this problem, can you help me and explain the way for me? thanks. I was using pterodactyl, first I had to add IP to trusted proxies. Next I had to follow cloudflare nginx config.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#1783
No description provided.