To forward Client IP to Back-End Server Using "x-forwarded-for" Header
Here is the policy to be created:
add rewrite action xforward_act replace HTTP.REQ.HEADER("X-Forwarded-For") CLIENT.IP.SRC
add rewrite policy xforward_check_pol "HTTP.REQ.HEADER(\"X-Forwarded-For\").EXISTS" xforward_act
Bind the above policy to the appropriate vServer.
NetScaler X-Forwarded-For Can Not Work: https://support.citrix.com/article/CTX231582
X-Forwarded-For Header Insert: https://support.citrix.com/article/CTX218061