How do I pass the client's IP address to my servers in an HTTP header?Web applications running behind ZXTM often need to know the client's IP address. By default, ZXTM adds the HTTP header From version ZXTM 4.2 onward, RuleBuilder allows you to use two magic strings "%REMOTE_IP%" and "%REMOTE_PORT%" in RuleBuilder actions, which will be replaced with the remote IP and port respectively when the rule is executed.
The following RuleBuilder rule, for example, sets the client IP address in the
In TrafficScript, you would use the following: http.setHeader("X-Forwarded-For", request.getRemoteIP());
Julian
[Zeus Dev Team] 09 July 2007
Comments:This public messageboard is not a forum for technical support. To report technical support problems, please contact our dedicated Support team using the instructions at the bottom of this page.
Comment from:
Jean-Fabrice [Visitor]
What about HTTPS virtual server configured with SSL passthrough ?
Comment from:
Owen Garrett [Zeus Dev Team]
With SSL passthrough, ZXTM does not decrypt the SSL traffic, so it cannot inspect or modify the HTTP data.
Use the 'SSL Dectypt a Service' wizard to configure your virtual server to decrypt and re-encrypt traffic first; then you can modify the data. |
Recent Articles
Other Resources
|



