Using statistics and nth match

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



With the old nth module, you could specify the counter used. There doesn't seem to be this option with the new statistic module.

Does it have only 1 counter? If not how does it work out which counter is used?

For example i have a number of places in my rules where i want to make a decision based on the load. These places are in the shape of a simple tree, each branch should have its own counter along the lines of

iptables -A -m statistic --mode nth --every 2 --packet 0 -j BRANCH1
iptables -A -m statistic --mode nth --every 2 --packet 2 -j BRANCH2


iptables -A BRANCH1 -m statistic --mode nth --every 2 --packet 0 -j DO_SOMETHING_1 iptables -A BRANCH1 -m statistic --mode nth --every 2 --packet 1 -j DO_SOMETHING_2

iptables -A BRANCH2 -m statistic --mode nth --every 2 --packet 0 -j DO_SOMETHING_3 iptables -A BRANCH2 -m statistic --mode nth --every 2 --packet 1 -j DO_SOMETHING_4



Thanks
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux