statsRules.add(new IfaсeDistributionRule(null, new FileOutputStream("flowsOutIfaces.csv", true), true));
statsRules.add(new IfaсeDistributionRule(null, new FileOutputStream("flowsInIfaces.csv", true), false));
statsRules.add(new IfaсeDirectionsRule(null, new FileOutputStream("flowsIfacesDirections.csv", true)));
final FlowFilter srcWellKnownPorts = new PortFilter(1, 4096, false);
final FlowFilter dstWellKnownPorts = new PortFilter(1, 4096, true);
final FlowFilter udpFlows = new ProtoFilter(17);
final FlowFilter tcpFlows = new ProtoFilter(6);
/* TCP destination ports */
final AndFilter tcpDstFlows = new AndFilter();
tcpDstFlows.addFilter(tcpFlows);
tcpDstFlows.addFilter(dstWellKnownPorts);