Skip to contentSkip to conversation

can tcp stream reassembly be done in netfilter

DISCUSSION zhengchuanbo 2 participants 2 messages Sep 1, 2003 – Sep 2, 2003 netfilter

lore
Share & tools
lore
#0 lore raw

I just downloaded the libqsearch. It's great that it can do the stream reassembly. Is there any examples on its application in linux kernel? or do you think it can
do filter the tcp stream in netfilter?
thanks.

Jack zheng
[email protected]

Quoted 11 lines · Oskar Andreasson
Quoted 10 lines · zhengchuanbo
Quoted 4 lines

Can netfilter do the tcp stream reassembly? I mean something like
what snort do in the stream process. I wish this could be done in the kernel.

No, netfilter is a packet filter. It works on a per packet basis, below the transport layer. Actually it does do some work on the transport layer, but not much, and definitely not a lot of work on the application layers.

Quoted 22 lines
Quoted 3 lines

All of this comes down to one thing, netfilter simply doesnt care about streams. That's when you should use snort or proxy solutions of one sort or another.

Thanks for this excellent reply.

I have to add that there is a project for linux kernel stream reassembly and pattern-matching: libqsearch. Try google :)

Signature · 12 lines
- Harald Welte <[email protected]>             http://www.netfilter.org/
============================================================================
 "Fragmentation is like classful addressing -- an interesting early
  architectural error that shows how much experimentation was going
  on while IP was being designed."                    -- Paul Vixie
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/UPWlXaXGVTD0i/8RAvoPAKCNvzD4pLnyUcxL6y/08GU8cfvULQCfYPxF
fhHZTP+r1gkBSaEv3iDodH8=
=BQg0
-----END PGP SIGNATURE-----

= = = = = = = = = = = = = = = = = = = =

#1 lore raw
Quoted 4 lines · zhengchuanbo

I just downloaded the libqsearch. It's great that it can do the stream reassembly. Is there any examples on its application in linux kernel? or do
you think it can do filter the tcp stream in netfilter?

Please contact the author of libqsearch for questions like this...

Quoted 1 line

thanks.

Signature · 5 lines
- Harald Welte <[email protected]>             http://www.netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie