can tcp stream reassembly be done in netfilter
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.
regards,
chuanbo zheng
[email protected]
Quoted 3 lines · zhengchuanbo
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.
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.
Quoted 12 lines
regards,
chuanbo zheng
[email protected]
----
Oskar Andreasson
http://www.frozentux.net
http://iptables-tutorial.frozentux.net
http://ipsysctl-tutorial.frozentux.net
mailto:[email protected]
Quoted 9 lines · Oskar Andreasson
Quoted 5 lines · zhengchuanbo
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.
Quoted 7 lines
No, netfilter is a packet filter. It works on a per packet basis, below
streams. That's when you should use snort or proxy solutions of one sort or another.
Hi,
I am considering to try this one. Snort is a crap on behalf of my examinations about tcpreassambly code. (see state evasion bug) Linux kernel includes tcp reassembly thing and one can use it to glue data for signature check. The only reason for this is, *why don't we have a kernel based signature ids?*. Anybody interested in discussion may mail me, don't want to abuse ppl here.
Evrim.
New netfilter module.
Please ,
I\'m trying to write a new module and i need some help ;).
What i need to do is a module for dnat UDP packets but always to the same IP if they came from a determinated IP.. i don\'t know if i\'m clear.. but the idea is to use it for UDP RAS msgs in an h323 session... haveing a proxy that balance all those msgs to some RAS servers. well i thougth to write an nat-helper module.. but i don;t know if it\'s right.. may be the right thing is to write a new target module?..
Please can someone give me a hand with this?
Thanks a lot in advance.
Christian.
Quoted 6 lines · Oskar Andreasson
Quoted 3 lines · zhengchuanbo
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.
Quoted 7 lines
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.
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 · 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
Quoted 4 lines · Harald Welte
I have to add that there is a project for linux kernel stream reassembly and pattern-matching: libqsearch. Try google :)
Hmmm, but does this hock into netfilter in any way, or does it have any kind of interface for tcp/ip or socket filtering etcetera? Curiosity you know.
Sidenote, is the netfilter.org lists extremely dead, or is it just me not getting any mails...?
----
Oskar Andreasson
http://www.frozentux.net
http://iptables-tutorial.frozentux.net
http://ipsysctl-tutorial.frozentux.net
mailto:[email protected]