I am using Linode NodeBalancers to load balancers my 2 tomcat servers (to serve https request ), one of our business requirements is to able to capture ClientIP for fingerprinting + other purpose.
However, I can't seems to get the NodeBalancers to pass the Client IP via x-forwarded-for, Linode support also have no idea how to do so on Tomcat Configuration?
Here's portion of my Tomcat Configuration (server.xml)
<Connector port="443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
keystoreFile="myKeyStore"
keystorePass="myKeyStorePassword"
compression="on"
compressableMimeType="text/html,text/xml,text/css,text/javascript"
compressionMinSize="1024"
maxPostSize="5097152"
clientAuth="false" sslProtocol="TLS" />
<Valve className="org.apache.catalina.valves.RemoteIpValve"
remoteIpHeader="x-forwarded-for"
protocolHeader="x-forwarded-proto"
protocolHeaderHttpsValue="https"
/>