<div dir="ltr">If you search around you'll find a few helpful tools here and there.<div><br></div><div><a href="https://github.com/smunaut/libvmod-whatever">https://github.com/smunaut/libvmod-whatever</a> does implement this.<br>
</div><div><br></div><div style>This probably belongs in the std vmod as this is a often requested feature.</div><div style><br></div><div style>Per.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jan 28, 2013 at 10:38 PM, Jim Hayter <span dir="ltr"><<a href="mailto:jhayter@manta.com" target="_blank">jhayter@manta.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am running Varnish 3.02 under Ubuntu 12.04.<br>
<br>
I am familiar with the ACL example of setting up a list of IPs and testing client.ip against it to limit the ability to purge.<br>
<br>
I have an environment where I would like to check the IP of the originating request against an ACL to decide which backend to use. The problem is that with a CDN and nginx in front of varnish, client.ip does not contain the appropriate IP. The originating IP is available in one of the request headers. Is there a way to convince varnish to compare the originating IP with the ACL?<br>
<br>
Regards,<br>
Jim<br>
--<br>
Jim Hayter<br>
Systems Engineer<br>
Office: <a href="tel:614.807.5145" value="+16148075145">614.807.5145</a> Fax: <a href="tel:614.807.5104" value="+16148075104">614.807.5104</a><br>
<a href="http://Manta.com" target="_blank">http://Manta.com</a> Where Small Business Grows<br>
<br>
<br>
<br>
_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div style="font-size:12.727272033691406px;margin:5px 15px 0px 0px;padding-bottom:5px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">
<table border="0" cellpadding="0" cellspacing="0" style="text-align:start;font-size:12px;line-height:1.5em;font-family:'Helvetica Neue',Arial,sans-serif;color:rgb(102,102,102);width:550px;border-top-width:1px;border-top-style:solid;border-top-color:rgb(238,238,238);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(238,238,238);margin-top:20px;padding-top:5px;padding-bottom:5px">
<tbody><tr><td width="100" style="font-family:arial,sans-serif;margin:0px"><a href="http://www.varnish-software.com/" style="color:rgb(17,85,204)" target="_blank"><img src="http://www.varnish-software.com/static/media/logo-email.png" style="float:left;margin-left:10px"></a></td>
<td style="font-family:arial,sans-serif;margin:0px"><b style="font-size:14px;color:rgb(34,34,34)">Per Buer</b><br>CEO | Varnish Software AS<br>Phone: +47 958 39 117 | Skype: per.buer<br><span style="font-weight:bold">We Make Websites Fly!<br>
<br></span></td></tr></tbody></table><div></div></div><div style="font-size:12.727272033691406px;margin:15px 0px;clear:both;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)"></div>
</div>