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
Post a Comment