If internet traffic comes through an HAproxy load balancer on SSL and that is passed to an nginx web server, how can I log the clients ip address?
I'm aware of methods like this: How can I use HAproxy with SSL and get X-Forwarded-For headers AND tell PHP that SSL is in use? where you can strip the ssl before the request gets to HAproxy.
Is there anyway to log the clients ip address without stripping the ssl before HAproxy?
I'm using option httpclose and option forwardfor for http connections. Is there an equivalent to this for tcp connections?