My traefik instance sits behind a vpn connection and is able to retrieve client IP's using proxy protocol. This setup works perfectly fine and the actual client IP's are always correctly forwarded to the downstream.
The problem is that this does not happen in the access log.
It only sometimes puts it in there and for a few following lines just only contain a local IP (of the other side of the VPN connection).
Providing a log really wouldn't help because there isn't a scheme to this. Even after opening a new connection it only sometimes shows the actual client IP. The downstream status code does not influence this behaviour.
For me it's crucial for this to work properly because I use CrowdSec to parse the logs.
Is someone able to replicate this with my setup? I use nginx with a stream directive (proxy protocol enabled) which forwards tcp connections through a VPN tunnel where Traefik receives the connection and handles it.