netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* per host accounting
@ 2012-07-23  3:22 Yucong Sun (叶雨飞)
  2012-07-23  6:58 ` Tom van Leeuwen
  2012-07-23  8:00 ` Eric Leblond
  0 siblings, 2 replies; 7+ messages in thread
From: Yucong Sun (叶雨飞) @ 2012-07-23  3:22 UTC (permalink / raw)
  To: netfilter

Hi,

I need a way to account traffic (bytes) for ~500 ips (fixed),  and it
seems creating a plain 500 rules will affect the performance a lot.
Without implement layered rule (like a binary search?) , is there
something existing to do automatic hashing?
Things like hashlimit is great, but I don't need limit matching
function, just a way to create a hashtable and count bytes and
packets.

If there's none, I suppose it would easy enough to fork some hashlimit
code to do this.

Cheers.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-07-25 22:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-23  3:22 per host accounting Yucong Sun (叶雨飞)
2012-07-23  6:58 ` Tom van Leeuwen
2012-07-23  8:00 ` Eric Leblond
2012-07-23 22:27   ` Yucong Sun (叶雨飞)
2012-07-25 10:19     ` Pablo Neira Ayuso
2012-07-25 14:21       ` Peter Phaal
2012-07-25 22:10     ` Bob Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).