Problems using subnets in acl

Henrik Nicolaisen hema at tv2.dk
Mon Nov 6 17:20:34 CET 2006


Hi

I am testing varnish, and I need to allow our internal development  
net to purge documents.

It works perfectly if i add single ip's, but when i try to add  
subnets it won't work, is this a bug, or am i writing something wrong  
in vcl ?

acl purge {
         "localhost";
         "10.10.0.0/16";
}

sub vcl_recv {
         if (req.request == "PURGE") {
                 if (!client.ip ~ purge) {
                         error 405 "Not allowed.";
                 }
                 lookup;
         }
}

I have also tried "10.10.0.0/255.255.0.0";

Any ideas ?


Venlig hilsen

Henrik Nicolaisen
TV 2 Interaktiv


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1931 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20061106/dac76ba4/attachment-0002.bin>


More information about the varnish-misc mailing list