ambe5960
ambe5960

Reputation: 2000

ELB not forwarding client IP

So I have AWS ELB sitting in front of haproxy and our app servers behind those (a little crazy, I know). The requests are being logged in both our haproxy servers and application servers as coming from the ip's of the ELB, without showing the true client IP. When we have this setup with just HAproxy and our app servers, there is no issue with the client IP being passed along, but there don't seem to be many configuration options to allow x forwarded for headers in ELB. It may be set by default, but it's hard to find if that's true.

Thanks in advance for any help!

Upvotes: 0

Views: 627

Answers (1)

Vame
Vame

Reputation: 2063

AWS has brought proxy protocol support for TCP ingress on ELB:

https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-proxy-protocol.html

Upvotes: 1

Related Questions