As one problem was solved, the other popped in. Does anyone know if is there a way to copy the content of one header into the other?
What I mean is that a client firewall is receiving an HTTP packet forwarded from HAproxy with two headers: 1) X-Forwarded-For (this header doesn’t contain real client IP but an IP from our router)
2) X-Original-Forwarded-For (this header contains real client IP which visits our website)
The question is how to copy the real client IP from X-Original-Forwarded-For into X-Forwarded-For.