Proxy protocol and Forwarded-For headers

Hi,

I have an entryPoint with proxy protocol enabled.
And an HTTP router and HTTP service.

Is it possible to get the client IP from proxy protocol into Forwarded-Headers?

Client (1.2.3.4) -> AWS ELB -[TCP with proxy protocol]-> Traefik -[HTTP with Forwarded]-> App (X-Real-Ip: 1.2.3.4)

I haven't used it but I was under the impression it was automatic if the entrypoint is configured correctly.

Then it is not working in conjunction with a AWS classic ELB (proxy protocol enabled).

We have the following setup:

Client -> ELB -> Traefik-Ext -> ISP/FW -> Traefik-Int -> Service

And the Service does get only the ELB IP

When routing via TCP from Traefik-Ext to Traefik-Int, we get:

HTTP_X_FORWARDED_FOR [IP ELB], [IP Traefik-Int]

When routing via HTTP from Traefik-Ext to Traefik-Int, we get:

HTTP_X_FORWARDED_FOR [IP ELB], [IP Traefik-Ext], [IP Traefik-Int]

And in both cases:

X-Real-Ip [IP ELB]

Seems we need to dig into ELB ...