search cancel

CA API Gateway: Track request source IP

book

Article ID: 112554

calendar_today

Updated On:

Products

STARTER PACK-7 CA Rapid App Security CA API Gateway

Issue/Introduction



How can the source IP of a request be tracking when the Gateway is fronted by a load balancer? 

Environment

Release:
Component: APIGTW

Resolution

To track the request source in this scenario it is best to enable the X-Forwarded-For header on your load balancer.
This will then be exposed to the gateway via the built-in context variable ${request.http.header.X-Forwarded-For}.