Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nginx stream real ip #1230

Open
penalte opened this issue Jul 11, 2021 · 3 comments
Open

nginx stream real ip #1230

penalte opened this issue Jul 11, 2021 · 3 comments

Comments

@penalte
Copy link

penalte commented Jul 11, 2021

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.

@baudneo
Copy link

baudneo commented 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?

@penalte
Copy link
Author

penalte commented Mar 12, 2022

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

Copy link

github-actions bot commented Mar 8, 2024

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

@github-actions github-actions bot added the stale label Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants