We need Varnish to always add X-Forwarded-For so that we can see the visitor's IP when they submit a poll answer.<div><br></div><div>We have this setup, but we are still seeing about half of our requests not include the X-Forwarded-For header.</div>
<div><br></div><div><div>sub vcl_pipe {</div><div>        set bereq.http.X-Forwarded-For = req.http.X-Forwarded-For;</div><div>        set bereq.http.X-Forwarded-For = regsub(bereq.http.X-Forwarded-For, "$", ", ");</div>
<div>        set bereq.http.X-Forwarded-For = regsub(bereq.http.X-Forwarded-For, "$", client.ip);</div><div>        set req.http.connection = "close";</div><div>}</div><div><br></div>Sincerely,<br>Doug Eubanks<br>
<a href="mailto:admin@dougware.net" target="_blank">admin@dougware.net</a><br>K1DUG<br>(919) 201-8750<br>
</div>