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 X-Cluster-Client-IP to each HTTP request, but some applications expect to find the client's IP address in a different header, such as X-Forwarded-For. You can add the required header using either RuleBuilder™ or TrafficScript™.

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 X-Forwarded-For header:

In TrafficScript, you would use the following:

http.setHeader("X-Forwarded-For", request.getRemoteIP());
Julian [Zeus Dev Team] 09 July 2007  Permalink 2 comments  

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 ?
Permalink 26 October 2007 @ 12:02
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.
Permalink 29 October 2007 @ 11:54
Leave a comment ...
Your email address will not be displayed.
Your URL will be displayed.
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.
Options:
 
(Line breaks become <br />)
(Set cookies for name, email & url)
Download Free ZXTM Desktop Edition

Recent Articles

Other Resources



www.zeus.com