boundless-summer-16430
10/19/2023, 12:59 PMproxy_pass the request from our subdomain to rudderstack dataplane URL,
We can see the X-forwarded-for is coming right on the nginx proxy (verified by tcpdump) but on rudderstack we are seeing proxy server IP instead of real customer IP.
Below is the nginx_config
server {
listen 80;
location / {
proxy_set_header Connection "Keep-Alive";
proxy_set_header Proxy-Connection "Keep-Alive";
proxy_set_header Authorization $http_authorization;
proxy_pass_header Authorization;
proxy_ssl_server_name on;
proxy_pass our_data_plane_url;
}
}
We tried to check the X-Forwarded_for header after our proxy ,we found the IP at 0th index is client IP, so as per rudder-server repo's code, it should pick the first IP , instead it is picking up the proxy server IP instead.
Could you please let us know if we are doing anything wrong?
PS: this whole setup was working till October 17 09:35 UTC.millions-activity-52391
10/19/2023, 12:59 PMboundless-summer-16430
10/19/2023, 1:01 PMboundless-summer-16430
10/19/2023, 1:02 PMmillions-activity-52391
10/19/2023, 2:00 PMmillions-activity-52391
10/19/2023, 2:07 PMdelightful-coat-13923
10/19/2023, 2:08 PMboundless-summer-16430
10/19/2023, 2:19 PMhundreds-lifeguard-65770
10/19/2023, 5:58 PMproxy_set_header X-Forwarded-For $http_x_forwarded_for;
proxy_set_header X-Real-IP $proxy_add_x_forwarded_for;
and it comes through fine to Indicativehundreds-lifeguard-65770
10/19/2023, 6:01 PMdelightful-coat-13923
10/19/2023, 6:06 PM