From: Christian Priebe <chr.priebe@googlemail.com>
To: netfilter-devel@vger.kernel.org
Subject: libnetfilter_queue/libnetfilter_conntrack: TCP packet reordering
Date: Fri, 25 Oct 2013 14:30:27 +0100 [thread overview]
Message-ID: <526A7273.2010800@gmail.com> (raw)
Hi all,
since Netfilter is working on the network level my understanding would
be that in case one want to use libnetfilter_queue to get to the full
content sent through a TCP connection, reassembly and reordering of TCP
segments have to be done by yourself.
I've looked at the source code of the l7-filter [1] project which uses
netfilter queues as well as conntrack to reassemble packets and do a
regular expression search to be able to determine protocols based on
application layer data. Apparently the only thing they do is to append
data from incoming packets of the same connection to a buffer without
ever looking at sequence numbers.
My question therefore is: Is my understanding wrong and Netfilter
(potentially with enabled conntrack modules) already reorders TCP
segments according to their sequence numbers or did I miss something and
you would have to do it on your own?
[1] http://l7-filter.clearfoundation.com
Thanks in advance!
Best wishes,
Christian
next reply other threads:[~2013-10-25 13:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-25 13:30 Christian Priebe [this message]
2013-10-25 13:41 ` libnetfilter_queue/libnetfilter_conntrack: TCP packet reordering Florian Westphal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=526A7273.2010800@gmail.com \
--to=chr.priebe@googlemail.com \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).