You can use the forwardfor
option to get the original requestor's IP address in a X-Forwarded-For
HTTP Request header.
I'm not sure if WP can be configured to log this header but for sure, it's in HAProxy's logs. It's very useful when troubleshooting.
Sources:
- https://serverfault.com/a/30336/101643
- personal experience