[GH-ISSUE #1230] nginx stream real ip #1001

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

Originally created by @penalte on GitHub (Jul 11, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1230

Hello when i use the Stream feature it works well but for game servers the ip of the client is the ip of the machine.

I found this not sure if it is relevant.
http://nginx.org/en/docs/stream/ngx_stream_realip_module.html

Thank you for this amazing software.

Originally created by @penalte on GitHub (Jul 11, 2021). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1230 Hello when i use the Stream feature it works well but for game servers the ip of the client is the ip of the machine. I found this not sure if it is relevant. http://nginx.org/en/docs/stream/ngx_stream_realip_module.html Thank you for this amazing software.
kerem 2026-02-26 06:35:23 +03:00
Author
Owner

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

this is in the nginx.conf for NPM ->
`

# Real IP Determination
# Local subnets:
set_real_ip_from 10.0.0.0/8;
set_real_ip_from 172.16.0.0/12; # Includes Docker subnet
set_real_ip_from 192.168.0.0/16;
# NPM generated CDN ip ranges:
include conf.d/include/ip_ranges.conf;
# always put the following 2 lines after ip subnets:
real_ip_header X-Real-IP;
real_ip_recursive on;

`
and the ip_ranges.conf gets updated with cloudflare ips, not sure if there is a way to add some yourself and it be persistent?

<!-- gh-comment-id:907545008 --> @baudneo commented on GitHub (Aug 28, 2021): this is in the nginx.conf for NPM -> ` # Real IP Determination # Local subnets: set_real_ip_from 10.0.0.0/8; set_real_ip_from 172.16.0.0/12; # Includes Docker subnet set_real_ip_from 192.168.0.0/16; # NPM generated CDN ip ranges: include conf.d/include/ip_ranges.conf; # always put the following 2 lines after ip subnets: real_ip_header X-Real-IP; real_ip_recursive on; ` and the ip_ranges.conf gets updated with cloudflare ips, not sure if there is a way to add some yourself and it be persistent?
Author
Owner

@penalte commented on GitHub (Mar 12, 2022):

Can someone help with this, i really need the client ip in stream.

<!-- gh-comment-id:1065812961 --> @penalte commented on GitHub (Mar 12, 2022): Can someone help with this, i really need the client ip in stream.
Author
Owner

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

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

<!-- gh-comment-id:1984906235 --> @github-actions[bot] commented on GitHub (Mar 8, 2024): Issue is now considered stale. If you want to keep it open, please comment :+1:
Author
Owner

@github-actions[bot] commented on GitHub (Apr 20, 2025):

Issue was closed due to inactivity.

<!-- gh-comment-id:2816950848 --> @github-actions[bot] commented on GitHub (Apr 20, 2025): Issue was closed due to inactivity.
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#1001
No description provided.