Randomized packet filtering through specialized partitioning of rulesets