<p>I have a container with an exposed port in a pod. When I check the log in the containerized app, the source of the requests is always 192.168.189.0 which is a cluster IP. I need to be able to see the original source IP of the request. Is there any way to do this?
I tried modifying the service (externalTrafficPolicy: Local) instead of Cluster but it still doesn't work. Please help.</p>

Ibrahim Jimoh
<p>When you are working on an application or service that needs to know the source IP address you need to know the topology of the network you are using. This means that you need to know how the different layers of loadbalancers or proxies works to deliver the traffic to your service.</p>

<p>Depending on what cloud provider you are using or the loadbalancer you have in front of your application the source IP address should be on a header of the request. The header you have to look for is  <code>X-Fordwared-for</code>, more info <a href="https://developer.mozilla.org/es/docs/Web/HTTP/Headers/X-Forwarded-For" rel="nofollow noreferrer">here</a>, depending on the proxy or loadbalancer you are using sometimes you need to activate this header to receive the correct IP address.</p>
