Convox Community

HTTP headers from load balancer not specifying real client IP

Hi all,

I just created a fresh v3 rack in AWS. I’m trying to pass along the true external client IP to my application, but it looks like that data is being stripped somewhere along the way.

Here’s the raw HTTP request data I see when I run a dummy service with a simple HTTP listener:

X-Request-ID: 771434122d4833d982832008d49dde9c
X-Real-IP: 10.1.85.112
X-Forwarded-For: 10.1.85.112
X-Forwarded-Host: <my host parameter>
X-Forwarded-Port: 443
X-Forwarded-Proto: https
X-Scheme: https
<other client HTTP headers>

10.1.85.112 happens to be the private IP of one of the rack EC2 instances.

Is there any way to get the real external IP, or is that not possible in v3 racks?

Thanks,

Nick