portal entry

select a category, or use search below
(searches all categories and all time range)
Title:

How to get CF to know a user’s real IP address, when behind a proxy, load balancer, caching solution, etc.

| View in Portal
April 29, 2019 09:38:13 PM GMT
3 Comments
<p>If your server is behind some loadbalancer, proxy, or caching solution, you may need to know the "real" IP address for a user. Or perhaps you are developer, and because of this same problem, you find that you can never get CF "debugging output" to appear, even though your IP address is in the CF Admin list. See this post, for how to leverage the Tomcat RemoteIPValve, which can be configured easily within CF.</p>
<p>The post <a rel="nofollow" href="https://coldfusion.adobe.com/2019/04/get-cf-know-users-real-ip-address-behind-proxy-load-balancer-caching-solution-etc/">How to get CF to know a user’s real IP address, when behind a proxy, load balancer, caching solution, etc.</a> appeared first on <a rel="nofollow" href="https://coldfusion.adobe.com">ColdFusion</a>.</p>
Labels: Blog, ColdFusion, Troubleshooting, admin, blog, troubleshooting

Comments:

<p>Great article Charlie, as always! </p><p>We had this problem years ago here at work when a new proxy was installed and we found that it wasn’t forwarding the real IP at <em>all</em>. We had to ask our network team to change the configuration in the proxy appliance (I’d prefer not to say the name of the device, for security reasons). After they did that we started seeing X-Forwarded-For in the header data.</p>
Comment by yacoubean
2029 | May 01, 2019 08:28:05 PM GMT
Thanks for the kind regards, Jake. And had you guys used the remoteipvalve to get CF to regard that header? Or was this perhaps before CF10 (and CF's Tomcat integration)?
Comment by Charlie Arehart
2030 | May 02, 2019 03:23:35 AM GMT
Yeah, before CF10.
Comment by yacoubean
2041 | May 07, 2019 06:17:50 PM GMT