Insert the IP address of the client in the request header 编辑

September 14, 2021 Contributed by:  SC

Insert the IP address of the client in the request header

A Citrix ADC 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.

Note: To insert multiple headers, you need to perform one of the following:

  • Add rewrite policies to check CLIENT.IS_SSL and insert appropriate header.
  • Bind the appropriate rewrite policy for each virtual server based on the type.


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

At the command prompt, type:

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

Example:

set service Service-HTTP-1 -CIP enabled X-Forwarded-For<!--NeedCopy-->


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

  1. Navigate to Traffic Management > Load Balancing > Services, and edit a service.
  2. In the Service Settings pane, click the edit icon.
  3. In the Load Balancing Service pane, select the Insert Client IP Address check box.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:52 次

字数:1992

最后编辑:7 年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文