<div dir="ltr"><div>       Hi,</div><div><br></div><div> # FORWARD THE IP OF THE REQUEST</div><div>  if (req.restarts == 0) {</div><div>    if (req.http.x-forwarded-for) {</div><div>      set req.http.X-Forwarded-For =</div><div>      req.http.X-Forwarded-For + ", " + client.ip;</div><div>    } else {</div><div>      set req.http.X-Forwarded-For = client.ip;</div><div>    }</div><div>  }</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-08-11 18:39 GMT+03:00 Guillaume Quintard <span dir="ltr"><<a href="mailto:guillaume@varnish-software.com" target="_blank">guillaume@varnish-software.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Have the website look at the X-forwarded-for header?<div><br></div><div>Next varnish version will support the proxy protocol on the backend site, IIUC, so you won't even need the header trick.<span class="HOEnZb"><font color="#888888"><br><div class="gmail_extra"><br clear="all"><div><div data-smartmail="gmail_signature"><div dir="ltr"><div>-- <br></div>Guillaume Quintard</div></div></div></div></font></span></div></div>
</blockquote></div><br></div>