<html><head></head><body bgcolor="#FFFFFF"><div>Jewel,</div><div>What header are you checking on the back end?</div><div>You should be reading the x-forwarded-for header rather than some form of remote_addr.<br><br><div>Stewart Robinson</div>
@stewsnooze<div><a href="http://FullFatThings.com">FullFatThings.com</a></div></div><div><br>On 19 Mar 2012, at 07:53, Jewel Nuruddin <<a href="mailto:jewel.nuruddin@eastbeam.co.jp">jewel.nuruddin@eastbeam.co.jp</a>> wrote:<br>
<br></div><div></div><blockquote type="cite"><div>Sorry I the configuration is bellow, please ignore my previous configuration.<br><pre>sub vcl_recv {
remove req.http.X-Forwarded-For;
set req.http.X-Forwarded-For = client.ip;
}</pre>
But still it did not work for me !!!<br><br><div class="gmail_quote">On Mon, Mar 19, 2012 at 4:36 PM, Jewel Nuruddin <span dir="ltr"><<a href="mailto:jewel.nuruddin@eastbeam.co.jp">jewel.nuruddin@eastbeam.co.jp</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello<br>My varnish is run on 10.70.18.22 server and my web server run back end 10.70.18.30<br>When client browse through varnish in my web server it always show varnish IP(10.70.18.22)<br>
But I want my web server should display client IP address.<br>
I use the following configuration<br><pre>sub vcl_fetch {
remove obj.http.X-Varnish-IP;
set obj.http.X-Varnish-IP = server.ip;
}</pre>It did not work for me.<br>Can some one please help me what should I do.<br><br>Thanks<span class="HOEnZb"><font color="#888888"><br>Jewel<br>
</font></span></blockquote></div><br>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>varnish-misc mailing list</span><br><span><a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a></span><br>
<span><a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a></span></div></blockquote></body></html>