Questions tagged [real-ip]
16 questions
8
votes
3 answers
kubernetes nginx ingress with proxy protocol ended up with broken header
I try to setup nginx ingress (nodeport) on google container with proxy protocol so that the real ip can be forwarded to backend service, but ended up with broken header.
2017/02/05 13:48:52 [error] 18#18: *2 broken header:…

ken
- 13,869
- 6
- 42
- 36
5
votes
0 answers
Getting Real IP to Kubernetes Pods using Traefik and DigitalOcean
I am trying to get the real source IP addresses to my Kubernetes pods using traefik. I am using the digital ocean load balancer which has the proxy protocol enabled. I have also configured my K8s service yaml to set the External Traffic policy to…

Rutnet
- 1,533
- 5
- 26
- 48
3
votes
1 answer
Can't get real-ip from nginx/varnish to pass on, always shows 127.0.0.1
I would like to have the real-IP shows up in the server/magento but it keeps falling back to 127.0.0.1
The server is setup as follow:
- Varnish listen on port 80
- Nginx listen on port 8080
- The SSL traffic are passed onto port 80
The final website…

Jerry
- 61
- 1
- 3
- 6
3
votes
3 answers
nginx allow|deny $realip_remote_addr
Using nginx you can allow and deny ranges and ips (https://www.nginx.com/resources/admin-guide/restricting-access/).
Using the realip module, you can change the ip it uses to the real IP after cloudflare.…

Cory Ory
- 43
- 1
- 6
2
votes
0 answers
Nginx Config load content through client proxy server
A user currently on their home network, 162.82.216.32, is trying to load our content through their proxy server, 192.231.231.16. When they load the site through their home network is displayed. Can anyone please advise if the above setup should…

Santosh Baruah
- 115
- 1
- 6
2
votes
1 answer
nginx real client ip not working
i have nginx, php7 and http_realip_module installed.
i have 1 server that serves 2 websites.
site 1 nginx config:
server {
...
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass…

Ourx
- 109
- 3
- 15
1
vote
1 answer
Nginx IPV6 with CDN and real_ip
I'm using CDN for my website and wants to get the real ip of clients.
My configurations are as following:
set_real_ip_from 173.245.48.0/20;
set_real_ip_from 103.21.244.0/22;
set_real_ip_from 103.22.200.0/22;
set_real_ip_from…

Free P
- 41
- 4
1
vote
1 answer
how to log client real ip and also CDN ip?
I'm using cloudflare for my website.
The issue I got is, after I enabled realip module on nginx, all CDN ips are replaced to user's realip. Then when I check the nginx log, I can't find out whether user is connecting via CDN or connection directly…

Free P
- 41
- 4
0
votes
0 answers
How to prevent Rate limit attack?
I'm using AspNetCoreRateLimit in .net6, when X-Real-IP change in request then rate limit reset.
"IpRateLimitOptions": {
"EnableEndpointRateLimiting": false,
"DisableRateLimitHeaders": true,
"StackBlockedRequests": false,
…

raul
- 1
- 1
0
votes
2 answers
Get IPv4 addresses of TOR exit nodes behind Cloudflare
Please how to tell the visitor comes from onion network if my server operates under Cloudflare?
E.g. with ngx_http_realip_module CF returns $_SERVER[HTTP_CF_CONNECTING_IP] with visitor's real IP. But I'm not sure how to manage it in case of IPv6…
user3532862
0
votes
2 answers
what is the better way to block CIDR ranges in nginx when using proxy_protocol?
I have a small pool of nginx instances that are behind an ELB in AWS. This ELB is internet-facing and speaks PROXY protocol, not HTTP.
Here's the relevant section of my main.vhost
server {
# speak only PROXY protocol
# Accept 80/443; we'll…

user1521764
- 137
- 3
- 11
0
votes
2 answers
Is there a way to make separate DNS requests for IPv4 and IPv6 in swift or ObjC
What I have so far is:
void startQueryIPv4(const char *hostName){
printf("startQueryIPv4");
DNSServiceRef serviceRef;
DNSServiceGetAddrInfo(&serviceRef, kDNSServiceFlagsForceMulticast, 0, kDNSServiceProtocol_IPv4, hostName, queryIPv4Callback,…

Hristo Atanasov
- 1,236
- 2
- 18
- 25
0
votes
0 answers
How to fix it in Laravel while I'am getting the localhost 127.0.0.1 instead of getting clients real IP address?
I was trying to get the user IP by using:
$request->ip();
but this return me the localhost ip 127.0.0.1
here is my code:
public function index(Request $request)
{
$userIP= $request->ip();
return…

Mosharof Hossain
- 87
- 2
- 9
0
votes
1 answer
Can I obtain real user ip with "iptables": false enabled?
I user "iptables": false option in docker daemon config:
/etc/docker/daemon.json:
{
"iptables": false
}
I run service with options --publish mode=host, --mode=global similar to this approach.
But when I get X-Real-IP header in my application its…

Roman Cherepanov
- 1,639
- 2
- 24
- 44
0
votes
2 answers
Behind AWS ELB : How to grab the Real IP from "netstat"?
I'm using AWS Elastic Load Balancing (ELB) in front of 2 Linux Web Servers. But (based on my requirement) i need to know the Real IPs from the Web Servers' perspective, especially when i use netstat.
I need to know the number of incoming connections…

夏期劇場
- 17,821
- 44
- 135
- 217