Create HTTP header with source IP of ProxyProtocol?

Traefik EntryPoints support ProxyProtocol which enables a load balancer to forward (encrypted) connections and still let Traefik know the original originating IP.

--entrypoints.web.address=:80
--entrypoints.web.http.redirections.entryPoint.to=websecure
--entrypoints.web.http.redirections.entryPoint.scheme=https
--entrypoints.web.proxyProtocol.trustedIPs=1.2.3.4,5.6.7.8
--entrypoints.websecure.address=:443
--entrypoints.websecure.proxyProtocol.trustedIPs=1.2.3.4,5.6.7.8

Is there a way for Traefik to add the load balancers IP (the direct source of the incoming ProxyProtocol connection) to the HTTP headers, to get something like x-forwarded-proxy: 1.2.3.4? We would like to see if all load balancers are actually working.

Just linking the issue you opened as it was accepted as a valid proposal to help other people track it:

1 Like