kubernetes - How to get real customer ip in google container engine and apache setup -


i can't find out customer real ip address when apache-php enviroment runs in google container. without modifying anything, ip address container address range, when using mod_remoteip, can add

remoteipheader x-client-ip remoteipinternalproxylist ournet/proxy-list 

and add rows "proxy-list"-file:

10.240.0.0/16 # google internal network 10.244.0.0/14 # cluster aadress range 

only row 10.244.0.0/14 gives result. in case cluster node's ip remote_addr value 10.240.0.0/16 network.

it seems, node acts forwarder, without adding needed headers request or looking totally wrong perspective?

some traffic masqueraded, done @ l3, rather l7, there's no way add header. :(

this better in-cluster traffic, have wait cloud load-balancers catch before can handle out-of-cluster traffic properly.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -