[GH-ISSUE #1324] forword remot real IP #1058

Closed
opened 2026-02-26 06:35:36 +03:00 by kerem · 9 comments
Owner

Originally created by @elyashivhazan on GitHub (Aug 16, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1324

Hi, I saw some ways to fix it but none of this solution works. Is there any way I could get some help with that?

I`m trying to forword the real conction IP to my servers contaners (on the same host) but its pusing the npm IP in side the docker network

Originally created by @elyashivhazan on GitHub (Aug 16, 2021). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1324 Hi, I saw some ways to fix it but none of this solution works. Is there any way I could get some help with that? I`m trying to forword the real conction IP to my servers contaners (on the same host) but its pusing the npm IP in side the docker network
kerem 2026-02-26 06:35:36 +03:00
  • closed this issue
  • added the
    stale
    label
Author
Owner

@baudneo commented on GitHub (Aug 28, 2021):

Have you made any progress diagnosing your issues? Are you behind cloudflare or is it just a DDNS pointed to your Home IP and NPM?

I am behind cloudflare and no matter what I do I cannot get the remote IP to come through to be logged. Kills my fail2ban setup.

<!-- gh-comment-id:907544427 --> @baudneo commented on GitHub (Aug 28, 2021): Have you made any progress diagnosing your issues? Are you behind cloudflare or is it just a DDNS pointed to your Home IP and NPM? I am behind cloudflare and no matter what I do I cannot get the remote IP to come through to be logged. Kills my fail2ban setup.
Author
Owner

@elyashivhazan commented on GitHub (Sep 4, 2021):

I just switch for nginx with configs files its more minimal and it works

<!-- gh-comment-id:912929836 --> @elyashivhazan commented on GitHub (Sep 4, 2021): I just switch for nginx with configs files its more minimal and it works
Author
Owner

@baudneo commented on GitHub (Sep 4, 2021):

I figured it out via the advanced tab for ngonx proxy manager I will reply with some of my confogs and how they are setup

<!-- gh-comment-id:913016656 --> @baudneo commented on GitHub (Sep 4, 2021): I figured it out via the advanced tab for ngonx proxy manager I will reply with some of my confogs and how they are setup
Author
Owner

@Martydog commented on GitHub (Sep 5, 2021):

This worked for me:

I'm behind cloudflare and this is what i put in the advanced box:

real_ip_header CF-Connecting-IP;

image

<!-- gh-comment-id:913147353 --> @Martydog commented on GitHub (Sep 5, 2021): This worked for me: I'm behind cloudflare and this is what i put in the advanced box: `real_ip_header CF-Connecting-IP;` ![image](https://user-images.githubusercontent.com/22003058/132127047-3985fcd6-a1f6-4ee4-ae0f-900f8f0921db.png)
Author
Owner

@elyashivhazan commented on GitHub (Sep 18, 2021):

i have try that before, no luck for me my servers inside my home are not getting the real ip no idea why. but with nginx its self its working

<!-- gh-comment-id:922366843 --> @elyashivhazan commented on GitHub (Sep 18, 2021): i have try that before, no luck for me my servers inside my home are not getting the real ip no idea why. but with nginx its self its working
Author
Owner

@NoskaOff commented on GitHub (Nov 5, 2022):

Did someone found a solution ?

<!-- gh-comment-id:1304585106 --> @NoskaOff commented on GitHub (Nov 5, 2022): Did someone found a solution ?
Author
Owner

@Reemabnyslma commented on GitHub (Nov 6, 2022):

الغاء

في السبت، ٥ نوفمبر ٢٠٢٢ ٦:٤٨ م N O S K A @.***> كتب:

Did someone found a solution ?


Reply to this email directly, view it on GitHub
https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1324#issuecomment-1304585106,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A37C42OFHD5PFPR72IH5G63WG2FUBANCNFSM5CHNHKUA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***
com>

<!-- gh-comment-id:1304711984 --> @Reemabnyslma commented on GitHub (Nov 6, 2022): الغاء في السبت، ٥ نوفمبر ٢٠٢٢ ٦:٤٨ م N O S K A ***@***.***> كتب: > Did someone found a solution ? > > — > Reply to this email directly, view it on GitHub > <https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1324#issuecomment-1304585106>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/A37C42OFHD5PFPR72IH5G63WG2FUBANCNFSM5CHNHKUA> > . > You are receiving this because you are subscribed to this thread.Message > ID: ***@***.*** > com> >
Author
Owner

@baudneo commented on GitHub (Nov 7, 2022):

Did someone found a solution ?

What is your issue and what headers are included in the request?

I have found success behind cloudflare using the CF-Connecting-IP. Are there any proxies or services your NPM is behind? Possibly could be using PROXY protocol?

<!-- gh-comment-id:1306083936 --> @baudneo commented on GitHub (Nov 7, 2022): > Did someone found a solution ? What is your issue and what headers are included in the request? I have found success behind cloudflare using the CF-Connecting-IP. Are there any proxies or services your NPM is behind? Possibly could be using PROXY protocol?
Author
Owner

@github-actions[bot] commented on GitHub (Mar 6, 2024):

Issue is now considered stale. If you want to keep it open, please comment 👍

<!-- gh-comment-id:1979932463 --> @github-actions[bot] commented on GitHub (Mar 6, 2024): Issue is now considered stale. If you want to keep it open, please comment :+1:
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#1058
No description provided.