JSS Through a Load Balancer

Getting the Load Balancer IP Address instead of the Macs address in the JSS after a recon through a Load Balancer ?  Try This

We may have to do the additional setup in the server.xml to grab the x forwarded ip. To do this we will need to go to /Library/JSS/Tomcat/conf and edit the server xml. Towards the bottom we will find a section that looks like this:

<Valve className="org.apache.catalina.valves.RemoteIpValve" />

We will need to change this so that it looks like this:

<Valve
className="org.apache.catalina.valves.RemoteIpValve"
internalProxies="X.X.X.X"
trustedProxies="X.X.X.X"
remoteIpHeader="x-forwarded-for"
remoteIpProxiesHeader="x-forwarded-by"
protocolHeader="x-forwarded-proto"/>

In this we will replace the X.X.X.X with the IP address of the Load Balancer. Before editing the server.xml we will also likely want to create a backup in case we need to revert back. Once this change has been made we can restart Tomcat.

This Needs to be done on ALL of the Tomcat Installs on a JSS Cluster