Hello, we've been facing issues with our proxy's I...
# support
b
Hello, we've been facing issues with our proxy's IP address getting picked up when we send events to amplitude. In our setup, there is a Nginx proxy that
proxy_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
Copy code
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.
m
Hey There! 👋 Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
cc: @polite-minister-93080
m
Hi Apoorv, raising this to the team
Also since you are a paying customer you can raise any queries you have on the shared invideo_rudderstack channel.
d
Hey @boundless-summer-16430 👋🏽 I have been chatting with the team (Rohan, Sumit) on our shared slack channel on this matter. I can add you you our channel if you aren’t there already. Please let me know
b
Posted here since it'd been a while on the other thread, happy to continue it there. Thanks @delightful-coat-13923 and @shy-kite-21035
h
@boundless-summer-16430 we use
Copy code
proxy_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 Indicative
✅ 1
d
Hey @boundless-summer-16430 👋🏽 We have resolved the issue on our shared Slack channel. The original thread was created yesterday, and the team has confirmed there that it is working now. For future reference, we kindly request that we continue the conversation in the same thread in our shared Slack channel for paid customers. This will help ensure that all the necessary information is consolidated in one place and is updated with the latest conversations we have with the rest of the team. Please let me know if there is anything else here troubling y’all!