[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[altq 1185] Re: Question about group management
soyoung@essue.co.kr wrote:
> I want to apply the following rule to the ALTQ configuration file.
>
> if (dest.ipaddr is a member of mgmt group) and
> (src.ipaddr is a member of server group) and
> (port num is a member of allowed group)
> => then allocate bandwidth 1Mbps
>
> (where mgmt group = {192.168.1.1, 192.168.1.2, 192.168.1.3} ,
> server group = {203.237.1.1, 203.237.1.2, 203.237.1.3},
> allowed service group = {http, telnet})
>
> in this case, how do I setup my configuration file? Can I represent the
> above rule in a class (with multiple filters) or do I have to use multiple
> classes to represent the above complex rule? (we can split the above complex
> rule into several simple rules with basic boolean algebra theory)
> if both possible, which one is more efficient?
A class with multiple filters.
And your rule isn't so complex :)
-Kenjiro