This content has been machine translated dynamically.
Dieser Inhalt ist eine maschinelle Übersetzung, die dynamisch erstellt wurde. (Haftungsausschluss)
Cet article a été traduit automatiquement de manière dynamique. (Clause de non responsabilité)
Este artículo lo ha traducido una máquina de forma dinámica. (Aviso legal)
此内容已动态机器翻译。 放弃
このコンテンツは動的に機械翻訳されています。免責事項
This content has been machine translated dynamically.
This content has been machine translated dynamically.
This content has been machine translated dynamically.
This article has been machine translated.
Dieser Artikel wurde maschinell übersetzt. (Haftungsausschluss)
Ce article a été traduit automatiquement. (Clause de non responsabilité)
Este artículo ha sido traducido automáticamente. (Aviso legal)
この記事は機械翻訳されています.免責事項
이 기사는 기계 번역되었습니다.
Este artigo foi traduzido automaticamente.
这篇文章已经过机器翻译.放弃
Translation failed!
示例 2:添加本地客户端-IP 标头
示例 Inc. 想要向传入请求添加本地客户端-IP HTTP 标头。此示例包含同一基本任务的两个略有不同版本。
使用命令行界面添加本地客户端-IP 标头
在命令提示符下,按所示顺序键入以下命令:
add rewrite action act_ins_client insert_http_header NS-Client 'CLIENT.IP.SRC'
add rewrite policy pol_ins_client 'HTTP.REQ.HEADER("x-forwarded-for").EXISTS || HTTP.REQ.HEADER("client-ip").EXISTS' act_ins_client
bind rewrite global pol_ins_client 300 END
使用配置实用程序添加本地客户端-IP 标头
在“创建重写操作”对话框中,创建具有以下描述的重写操作。
名称 | 类型 | 参数 |
---|---|---|
act_ins_client | insert_http_header | NS-Client ‘CLIENT.IP.SRC’ |
在“创建重写策略”对话框中,创建具有以下说明的重写策略。
名称 | 表达式 | 操作 |
---|---|---|
pol_ins_client | ‘HTTP.REQ.HEADER(“x-forwarded-for”).EXISTS || HTTP.REQ.HEADER(“client-ip”).EXISTS’ | act_ins_client |
将策略绑定到全局,分配如下所示的优先级和Goto 表达式值。 |名称|优先级|转到表达式| |–|–|–| |pol_ins_client|100|下一个 |
本地客户端-IP HTTP 标头现已添加到传入请求中。您还可以修改上述配置,将所有 IP 从 X-Forded-Fall 头追加到新的客户端-IP 头,如下所示。
分享:
分享:
This Preview product documentation is Citrix Confidential.
You agree to hold this documentation confidential pursuant to the terms of your Citrix Beta/Tech Preview Agreement.
The development, release and timing of any features or functionality described in the Preview documentation remains at our sole discretion and are subject to change without notice or consultation.
The documentation is for informational purposes only and is not a commitment, promise or legal obligation to deliver any material, code or functionality and should not be relied upon in making Citrix product purchase decisions.
If you do not agree, select Do Not Agree to exit.