Skip to contentSkip to conversation

[Fwd: Re: bloom filter in netfilter?]

Fwd: Re: bloom filter in netfilter? Sebastien Tandel 1 participant 1 message Mar 20, 2007 netfilter

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

cc list (bis)

Quoted 9 lines · Patrick Schaaf
Quoted 5 lines
Quoted 3 lines

We can't just get rid of it since bloom filters have false positives, so it could happen that we could miss some new connections that are not actually in the conntrack table.

That wouldn't be a big problem in my opinion, you can freely tune the probability.

Wouldn't two conntrack entries in the hash for the same tuples be catastrophic somewhere? (I have no idea, actually)

Quoted 7 lines

The other thing about bloom filters that worries me, having read the wikipedia entry, is that you cannot remove elements. Probability of false positives thus increases as conntracks are added. And a future repetition of exactly the same tuple would certainly be a false positive. Tuples repeat pretty fast with things like BGP, and a filter regeneration seems to involve shuffling all current conntracks into a fresh bloom filter.

In fact, you can delete with counting bloom filters.

Regards,
Sebastien Tandel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGAA4Fw76McB8jGxkRCodmAJ0VCLY2WGJneDjRp4c2G3uiM+wHMACfTKuj diooKOsjswPHfuPV6NG7dTA=
=4stR
-----END PGP SIGNATURE-----