How to preserve client IP address in a network architecture that utilized CDN > Application Gateway.

Guo Sheng Teh 0 Reputation points
2024-08-23T04:01:49.0733333+00:00

Hi guys,

I currently have a setup that accepts client request from CDN and forward to application gateway in front of a backend server.

The problem now is due to security concerns, I would like to obtain client IP addresses from application gateway's logs. All the request origin was shown and logged as CDN ip address instead of actual IP address of client side.

May I know any ways that I can configure my CDN and allow application gateway to get client's IPs? I know there is a technique called request headers modification and stuff about x-forwarded. Do anyone have any suggestions on this?

Appreciate your time and help to look into this!

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
1,086 questions
Azure Content Delivery Network
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.