On Wed, Jan 29, 2003 at 03:32:26PM -0600, Chris Johnson wrote:
> count in quick on xl0 all head 250
> count in from 192.169.0.0/16 to any group 250
> 
> On the one hand, that makes sense.  On the other hand, I would be hard pressed
> to tell anyone what the "count group" 250 does.  Does it count packets from
> the 192.168 network twice?

No. It works just like normal rules. The action (in this case "count")
of a head rule is only applied when the group members do not match

So:
count in quick on xl0 all head 250
count in from 192.169.0.0/16 to any group 250
count in from 192.168.0.0/16 to any group 250

A packet from 10.0.0.1 is counted in the head rule.
A packet from 192.169.0.1 is counted in the second rule.
and so on.


-Guido

ps: this is derived from memory. You should check this, but it is
what I recall after I last read the code.

Reply via email to