<p>I can't find out customer real IP address when apache-php enviroment runs in google container. Without modifying anything, I get ip address from container address range, when using mod_remoteip, I can add</p>

<pre><code>RemoteIPHeader X-Client-IP
RemoteIPInternalProxyList ournet/proxy-list
</code></pre>

<p>and add rows into "proxy-list"-file:</p>

<pre><code>10.240.0.0/16 # google internal network
10.244.0.0/14 # Cluster aadress range
</code></pre>

<p>Only the row 10.244.0.0/14 gives any result. In this case I get the cluster node's ip as REMOTE_ADDR value from the 10.240.0.0/16 network. </p>

<p>It seems, that the node itself acts as forwarder, without adding needed headers to the request or I am looking it from totally wrong perspective?</p>

<p>Some traffic is masqueraded, but it is done at L3, rather than L7, so there's no way to add a header. :(</p>

<p>This will get better soon for in-cluster traffic, but we have to wait for cloud load-balancers to catch up before we can properly handle out-of-cluster traffic properly.</p>
