X-Forwarded-For as Client IP in ALB Access Logs

0

We have a public proxy in front of our ALB. That public proxy forwards requests with the X-Forwarded-For header (to include the Client IP). We have also set up Access Logging for the Application Load Balancer. However, it appears that the IP address recorded for the request is not the actual Client IP address, but the public proxy's IP address.

How do we enable recording of the original client IP address (via the X-Forwarded-For) header in Application Load Balancer Access Logs?

-Shaun

soleson
已提問 5 年前檢視次數 1307 次
3 個答案
0

Any chance I can get some AWS Support with this?

soleson
已回答 5 年前
0

Should this be posted in another forum as I was hoping for some form of response by now.

Thanks in advance.

soleson
已回答 5 年前
0

For others seeking similar information, it appears that what I'm attempting to do is not really practical. Having the firewall behind a caching proxy would not prevent malicious traffic from attempting to access the caching proxy and that proxy attempting to pull cache misses.

Marking this closed as I'll need to find another solution.

soleson
已回答 5 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南