You're absolutely right, I did have to set the view where the slave match the IP address as the last view in my config. I just didn't want to have a large list of "negatives" in each of my views definition, but you seem to have set a smarter way to do that in your example... Like Niall said before, learning is a two-way process...<br>
<br><div class="gmail_quote">2012/7/9 Mark Andrews <span dir="ltr"><<a href="mailto:marka@isc.org" target="_blank">marka@isc.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
In message <<a href="mailto:C83FEC5A-10B3-4444-934E-A2D8E3140A5B@ucd.ie">C83FEC5A-10B3-4444-934E-A2D8E3140A5B@ucd.ie</a>>, Niall O'Reilly writes<br>
:<br>
<div><div class="h5">><br>
> On 3 Jul 2012, at 21:21, Rodrigo Renie Braga wrote:<br>
><br>
> > Just giving a feedback, this method worked great, but in my case, didn't ha<br>
> ve no negate the keys in the ACL (like the example below), I created one key<br>
> for each ACL in my configuration and used that ACL for the "match-clients" di<br>
> rective in the view.<br>
><br>
>       Congratulations!<br>
>       You seem to have thought of a better (i.e. simpler) way to do it<br>
>       than I did.  Learning is a two-way process.<br>
><br>
>       ATB<br>
>       Niall<br>
<br>
</div></div>Running w/o negate keys in the match-clients acl is fragile and<br>
depends on the address of the master/slaves being in the last view<br>
whereas the scheme below works independently of which view the<br>
master/slave ip addresses match.<br>
<br>
        key key1 { ... };<br>
        key key2 { ... };<br>
        key key3 { ... };<br>
        acl all-keys { key key1; key key2; key key3; }<br>
        view view1 { match-clients { key key1; !all-keys; ... }; ... };<br>
        view view2 { match-clients { key key2; !all-keys; ... }; ... };<br>
        view view3 { match-clients { key key3; !all-keys; ... }; ... };<br>
<br>
Mark<br>
<span class="HOEnZb"><font color="#888888">--<br>
Mark Andrews, ISC<br>
1 Seymour St., Dundas Valley, NSW 2117, Australia<br>
PHONE: <a href="tel:%2B61%202%209871%204742" value="+61298714742">+61 2 9871 4742</a>                 INTERNET: <a href="mailto:marka@isc.org">marka@isc.org</a><br>
</font></span></blockquote></div><br>