{"id":1276,"date":"2012-09-05T15:06:05","date_gmt":"2012-09-05T15:06:05","guid":{"rendered":"http:\/\/blog.designed79.co.uk\/?p=1276"},"modified":"2012-10-23T13:15:47","modified_gmt":"2012-10-23T13:15:47","slug":"jss-through-a-load-balancer","status":"publish","type":"post","link":"https:\/\/blog.designed79.co.uk\/?p=1276","title":{"rendered":"JSS Through a Load Balancer"},"content":{"rendered":"<p>Getting the Load Balancer IP Address instead of the Macs address in the JSS after a recon through a Load Balancer ? \u00a0Try This<\/p>\n<p>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:<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">&lt;Valve className=&quot;org.apache.catalina.valves.RemoteIpValve&quot; \/&gt;<\/div><\/div>\n<p>We will need to change this so that it looks like this:<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">&lt;Valve <br \/>\nclassName=&quot;org.apache.catalina.valves.RemoteIpValve&quot; <br \/>\ninternalProxies=&quot;X.X.X.X&quot; <br \/>\ntrustedProxies=&quot;X.X.X.X&quot; <br \/>\nremoteIpHeader=&quot;x-forwarded-for&quot; <br \/>\nremoteIpProxiesHeader=&quot;x-forwarded-by&quot; <br \/>\nprotocolHeader=&quot;x-forwarded-proto&quot;\/&gt;<\/div><\/div>\n<p>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.<\/p>\n<p>This Needs to be done on ALL of the Tomcat Installs on a JSS Cluster<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Getting the Load Balancer IP Address instead of the Macs address in the JSS after a recon through a Load Balancer ? [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1276","post","type-post","status-publish","format-standard","hentry","category-info-on-tech"],"_links":{"self":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1276","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1276"}],"version-history":[{"count":0,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1276\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1276"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1276"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}