<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>IIS 7.0 - Application Request Routing (ARR)</title><link>http://forums.iis.net/1154.aspx</link><description>Maximize server resources, and increase application availability and scalability with Application Request Routing.  Use this forum to ask questions, discuss issues, request features, and get support.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Can requests appear to come from the original client?</title><link>http://forums.iis.net/thread/1923580.aspx</link><pubDate>Thu, 05 Nov 2009 23:21:26 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1923580</guid><dc:creator>anilr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1923580.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1154&amp;PostID=1923580</wfw:commentRss><description>&lt;p&gt;ARR helper has now been updated with the suggestions above.&lt;/p&gt;</description></item><item><title>Re: Can requests appear to come from the original client?</title><link>http://forums.iis.net/thread/1920316.aspx</link><pubDate>Sun, 11 Oct 2009 16:44:39 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1920316</guid><dc:creator>stever@bitshop.com</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1920316.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1154&amp;PostID=1920316</wfw:commentRss><description>&lt;p&gt;Have you considered just making this a CodePlex project so these enhancements could be made? I would think some of the people interested in these enhancements could contribute them.. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Can requests appear to come from the original client?</title><link>http://forums.iis.net/thread/1914657.aspx</link><pubDate>Wed, 26 Aug 2009 05:55:32 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1914657</guid><dc:creator>Brian Adams</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1914657.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1154&amp;PostID=1914657</wfw:commentRss><description>&lt;p&gt;Just wanted to second everyone else that says the version of the ARRHelper that lets us provide and update trusted proxies would be very helpful.&amp;nbsp; The problem I have is that with managed code there does not appear to be a way to get in front of the ARRHelper before it executes in the pipeline.&amp;nbsp; If I could do that then I could have my own logic that checks for trusted proxy chains and I could blank out the x-forward-for header before the AARHelper even has a chance to process it.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Can requests appear to come from the original client?</title><link>http://forums.iis.net/thread/1911574.aspx</link><pubDate>Sun, 26 Jul 2009 13:41:54 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1911574</guid><dc:creator>anilr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1911574.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1154&amp;PostID=1911574</wfw:commentRss><description>&lt;p&gt;Thanks, I will give that a look.&amp;nbsp; Not sure exactly when I will update the ARRHelper module though.&lt;/p&gt;</description></item><item><title>Re: Can requests appear to come from the original client?</title><link>http://forums.iis.net/thread/1911232.aspx</link><pubDate>Wed, 22 Jul 2009 20:12:03 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1911232</guid><dc:creator>JohnGalt1</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1911232.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1154&amp;PostID=1911232</wfw:commentRss><description>&lt;p&gt;This definitely does appear to work great. Thanks much anilr! &lt;/p&gt;
&lt;p&gt;I&amp;#39;ll have to throw my hat in the ring for a little more security on it though. Assuming a chain of proxies before the web server, and therefore a chain of X-Forwarded-For addresses in the header, which IP is picked to be the client IP in your module? Is it always the first IP in the chain? &lt;/p&gt;
&lt;p&gt;&amp;nbsp;If you are interested, here&amp;#39;s some interesting info on how the problem has been addressed in Apache&amp;#39;s mod_extract_forwarded module &lt;a href="http://www.openinfo.co.uk/apache/index.html"&gt;http://www.openinfo.co.uk/apache/index.html&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Can requests appear to come from the original client?</title><link>http://forums.iis.net/thread/1910858.aspx</link><pubDate>Mon, 20 Jul 2009 15:36:44 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1910858</guid><dc:creator>Rolle</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1910858.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1154&amp;PostID=1910858</wfw:commentRss><description>&lt;p&gt;Great! It&amp;#39;s working on our dev area...&lt;/p&gt;&lt;p&gt;Thanks! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Can requests appear to come from the original client?</title><link>http://forums.iis.net/thread/1910467.aspx</link><pubDate>Thu, 16 Jul 2009 00:53:05 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1910467</guid><dc:creator>anilr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1910467.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1154&amp;PostID=1910467</wfw:commentRss><description>&lt;p&gt;I have re-released the ARR helper module on my blog&amp;nbsp;with fix for ignoring invalid X-Forwarded-For header.&amp;nbsp; The feature to only accept X-Forwarded-For headers from trusted proxies is still under consideration.&lt;/p&gt;</description></item><item><title>Re: Can requests appear to come from the original client?</title><link>http://forums.iis.net/thread/1903561.aspx</link><pubDate>Wed, 13 May 2009 12:28:59 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1903561</guid><dc:creator>niik</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1903561.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1154&amp;PostID=1903561</wfw:commentRss><description>@anilr: you&amp;#39;re absolutely right, we&amp;#39;re not using ARR yet the helper module was simple and effective way of solving our problem!

thanks a bunch btw =)</description></item><item><title>Re: Can requests appear to come from the original client?</title><link>http://forums.iis.net/thread/1902812.aspx</link><pubDate>Tue, 05 May 2009 17:04:43 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1902812</guid><dc:creator>anilr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1902812.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1154&amp;PostID=1902812</wfw:commentRss><description>&lt;p&gt;Mike, I think niik is talking about the application server and not the load-balancing server (he is probably not using ARR at all) - he wants the ARRHelper module to only do its work on certain websites on the application server.&lt;/p&gt;</description></item><item><title>Re: Can requests appear to come from the original client?</title><link>http://forums.iis.net/thread/1902797.aspx</link><pubDate>Tue, 05 May 2009 14:37:42 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1902797</guid><dc:creator>Mike Ayling</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1902797.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1154&amp;PostID=1902797</wfw:commentRss><description>&lt;p&gt;I would think that you could add conditions to the rewrite rule that sends traffic to a defined webfarm. For example, if you only want the request rewritten for ARR if a specific host header is specified, then add a condition for {HTTP_HOST} in the rewrite rule.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Can requests appear to come from the original client?</title><link>http://forums.iis.net/thread/1902682.aspx</link><pubDate>Mon, 04 May 2009 16:36:24 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1902682</guid><dc:creator>anilr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1902682.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1154&amp;PostID=1902682</wfw:commentRss><description>&lt;p&gt;I will look at that - it may be a while (also for the request to ignore invalid X-Forwarded-For headers), I am currently pretty busy with beta2 of ARRv2.&lt;/p&gt;</description></item><item><title>Re: Can requests appear to come from the original client?</title><link>http://forums.iis.net/thread/1902674.aspx</link><pubDate>Mon, 04 May 2009 15:27:20 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1902674</guid><dc:creator>niik</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1902674.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1154&amp;PostID=1902674</wfw:commentRss><description>Hey, great module,exactly what we where looking for!&lt;br /&gt;&lt;br /&gt;

One question though, is there any way of enabling/disabling the ARRHelper module for specific websites?&lt;br /&gt;&lt;br /&gt;

Some of our websites are portmapped directly through our firewall and some go through our ssl-offload/reverse-proxy and I&amp;#39;d like the ARRHelper to only operate on the latter.&lt;br /&gt;&lt;br /&gt;

I&amp;#39;ve tried removing the  element from the modules-section of applicationHost.config without any luck. I&amp;#39;ve also tried adding a  element to the applicationHost and the Web.config file, also without any luck. It seems to as if the module gets activated once it has been included in the globalModules section.&lt;br /&gt;&lt;br /&gt;

Perhaps you could add an enabled=&amp;quot;(true|false&amp;quot;) attribute to the configuration schema?&lt;br /&gt;&lt;br /&gt;

Thanks!</description></item><item><title>Re: Can requests appear to come from the original client?</title><link>http://forums.iis.net/thread/1901253.aspx</link><pubDate>Mon, 20 Apr 2009 18:57:31 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1901253</guid><dc:creator>ShqTth</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1901253.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1154&amp;PostID=1901253</wfw:commentRss><description>&lt;p&gt;When using squid,&lt;/p&gt;
&lt;p&gt;HTTP_VIA=1.1 sheldows-vista:80 (squid/2.7.STABLE4)&lt;br /&gt;HTTP_X_FORWARDED_FOR=96.48.192.227&lt;br /&gt;LOCAL_ADDR=127.0.0.1&lt;br /&gt;REMOTE_ADDR=127.0.0.1&lt;br /&gt;REMOTE_HOST=127.0.0.1&lt;/p&gt;
&lt;p&gt;HTTP_X_FORWARDED_FOR is the ip address of the client connected to the proxy, or if squid made a request for multiple clients, then sometime X-FORWARDED-FOR may contain multiple ip addresses seperated by &amp;quot;,&amp;quot; such as:&lt;br /&gt;HTTP_X_FORWARDED_FOR = x.x.x.x,y.y.y.y, z.z.z.z&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;REMOTE_ADDR will be the ip address of the proxy&lt;br /&gt;REMOTE_HOST will be either the ip address of the proxy or the name of the proxy machine&lt;/p&gt;</description></item><item><title>Re: Can requests appear to come from the original client?</title><link>http://forums.iis.net/thread/1901252.aspx</link><pubDate>Mon, 20 Apr 2009 18:48:40 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1901252</guid><dc:creator>ShqTth</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1901252.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1154&amp;PostID=1901252</wfw:commentRss><description>&lt;p&gt;1)You can check to make sure REMOTE_ADDR matches one of the ip address defined in the config file.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;If there is a match, then you know the request came from the load balancer / proxy srrver in reverse mode meaning X-FORWARDED-FOR can be trusted.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;- This option should be an option to turn off or on.&lt;br /&gt;&amp;nbsp;- if LOCAL_ADDR matches REMOTE_ADDR then its trusted.&lt;br /&gt;&amp;nbsp;- network range&amp;nbsp;or netmask would be nice such as y.y.y.x or x.x.x.x/y (example 192.168.1. or 192.168.1.0/24)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;2) Or if REMOTE_ADDR matches 127.0.0.1 or 192.168.X.X&amp;nbsp;or LOCAL_ADDR you pretty much can assume that X-FORWARDED-FOR can be trusted as the request came from a local server.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3) Advanced option (will be slower as it requires a lookup, but result can be cached):&lt;br /&gt;&amp;nbsp;Or the VIA header cantains the name of the proxy server. oviously the name much resolve to the REMOTE_ADDR to be valid.&lt;/p&gt;
&lt;p&gt;4) REMOTE_HOST can be matched. it is usually the ip addres or name of the proxy server. But information in REMOTE_HOST isn&amp;#39;t always reliable. (I never seen it set to an actual host name to date)&lt;/p&gt;
&lt;p&gt;Anyways&lt;/p&gt;
&lt;p&gt;options 1 &amp;amp; 2 seem like a good way to make sure X-FORWARDED-FOR can be trusted or not. but if an option like that is implemented it should be optional as some people wont need it.&lt;/p&gt;</description></item><item><title>Re: Can requests appear to come from the original client?</title><link>http://forums.iis.net/thread/1901247.aspx</link><pubDate>Mon, 20 Apr 2009 18:20:11 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1901247</guid><dc:creator>anilr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1901247.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1154&amp;PostID=1901247</wfw:commentRss><description>&lt;p&gt;How can you verify that the X-Forwarded-For is not spoofed?&amp;nbsp; It is never going to be the IP of the client, but an arbitrary IP that connected to the load-balancer.&amp;nbsp; Any validation of the client should be done by the load-balancer connecting to ARR.&lt;/p&gt;</description></item></channel></rss>