* libnetfilter_queue/libnetfilter_conntrack: TCP packet reordering
@ 2013-10-25 13:30 Christian Priebe
2013-10-25 13:41 ` Florian Westphal
0 siblings, 1 reply; 2+ messages in thread
From: Christian Priebe @ 2013-10-25 13:30 UTC (permalink / raw)
To: netfilter-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: libnetfilter_queue/libnetfilter_conntrack: TCP packet reordering
2013-10-25 13:30 libnetfilter_queue/libnetfilter_conntrack: TCP packet reordering Christian Priebe
@ 2013-10-25 13:41 ` Florian Westphal
0 siblings, 0 replies; 2+ messages in thread
From: Florian Westphal @ 2013-10-25 13:41 UTC (permalink / raw)
To: Christian Priebe; +Cc: netfilter-devel
Christian Priebe <chr.priebe@googlemail.com> wrote:
> 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.
Yes.
Depending on your requirements TPROXY could be an alternative.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-10-25 13:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-25 13:30 libnetfilter_queue/libnetfilter_conntrack: TCP packet reordering Christian Priebe
2013-10-25 13:41 ` Florian Westphal
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).