Insert the IP address of the client in the request header

A NetScaler uses the subnet IP (SNIP) address to connect to the server. The server need not be aware of the client.

However, in some situations, the server needs to be aware of the client it has to serve. When you enable the client IP setting, the appliance inserts the client’s IPv4 or IPv6 address while forwarding the requests to the server. The server inserts this client IP in the header of the responses. The server is thus aware of the client.

To insert client IP address in the client request by using the CLI

At the command prompt, type:

set service <name> -CIP <Value> <cipHeader>

Example:

set service Service-HTTP-1 -CIP enabled X-Forwarded-For

To insert client IP address in the client request by using the GUI

  1. Navigate to Traffic Management > Load Balancing > Services, and open a service.
  2. In Advanced Settings, select Traffic Settings, and select Client IP Address.

Insert the IP address of the client in the request header