<div class="gmail_quote">On Tue, Oct 20, 2009 at 11:24 PM, Bruce Hudson <span dir="ltr"><<a href="mailto:Bruce.Hudson@dal.ca">Bruce.Hudson@dal.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">> Its NOT if it doesn't match any class, ignore the client. Its for some<br>
> match, ignore the client. Its bit tricky here. This would be possible use<br>
> variables but it doesn't work. thanks.<br>
<br>
</div> You can assign every client membership in exactly one class of your<br>
set of class according to any combination of conditions. That is step<br>
one. Step two maps the classes to your pools. If none of your pools has<br>
a permit for a given class, the members of that class are essentially<br>
ignored. You can also do this explicitly by including the "ignore booting"<br>
directive in the class definition.<br>
<br></blockquote><div>Thanks Bruce. This is a bit tricky as I mentioned before. Consider this:<br>
<br>
I want to drop clients if its option 60 has the string "VIP".<br>
so I have a class:<br>
class "VIP" { match if substring(option 60, 0,3) = "VIP"; }<br>
later I have other classes... etc<br>
then I have the pool:<br>
pool {<br>
.... dummy..<br>
deny members of "VIP";<br>
}<br>
later other pools etc.<br>
<br>
Now, suppose, there is incoming packet from client which has option 60 and string "VIP". It doesn't match the first pool. But there is a chance that it could match other pools and that pool is assigned, there is no break or exit here.<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
If you are having trouble working this out, you may want to build a<br>
test version of the server. Look at the debugging options in "site.h":<br>
DEBUG_EXPRESSIONS, DEBUG_CLASS_MATCHING, and DEBUG_FIND_LEASE.<br></blockquote><div>ok. thanks. Let me check this. Do you also know where is the log info stored if I run with -f -q -d option ?<br></div></div>