在日志“应用程序网关"中获取ClientIP专用IP而不是公用IP. [英] Getting ClientIP- private IP instead of public IP in the logs Application Gateway.

查看:212
本文介绍了在日志“应用程序网关"中获取ClientIP专用IP而不是公用IP.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一个问题.

这是设置

启用防火墙VM>>应用程序网关>> Web服务器(IIS)

fortigate firewall VM >> Application gateway >> web servers (IIS)

在应用程序网关的日志中,我获取了Fortigate VM的WAN接口的私有IP.我应该在应用程序网关日志中的ClientIP中获取公共IP.应用程序网关具有专用IP.可能是什么原因?

In the logs of application gateway i am getting private IP of WAN interface of Fortigate VM. I should get Public IP in ClientIP in applications gateway logs. The Application gateway has private IP. what could be the reasons of this ??

推荐答案

champion5656,

Hi champion5656,

据我所知,这取决于Foritgate FW将发送的HTTP标头(称为"X-Forwarded-For"). 对于

As far as I know this depends on the HTTP Headers (called 'X-Forwarded-For') that the Foritgate FW will send.
For the
FortiOS 6.0 for instance you'll see:
"set http-ip-header {enable | disable}   For HTTP multiplexing, enable to add the original client IP address in the XForwarded-For HTTP header"

此致,
丹尼尔

Regards,
Daniël


这篇关于在日志“应用程序网关"中获取ClientIP专用IP而不是公用IP.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆