* conntrack + fragment retransmission: What are the basic assumptions?
@ 2014-11-05 15:47 Karsten Hohmeier
0 siblings, 0 replies; only message in thread
From: Karsten Hohmeier @ 2014-11-05 15:47 UTC (permalink / raw)
To: netfilter
Hi everybody,
I looked into the behavior of conntrack when dealing with sequences of
fragmented ICMPv6 packets (echo requests).
From what I observed, conntrack seems to operate in the following manner:
1) Assume all fragments (of a single packet) will pass through this
network node
2) Try to collect all fragments
3) Apply filter/mangle rules based on the complete packet and
the subsequent connection state
4) If packet is accepted, forward all the fragments in order,
even if they were received out-of-order
This behavior changes when a fragment is retransmitted, while the node
still collects fragments:
1) Assume all fragments will pass through this network node
2) Try to collect all fragments
3) Observe retransmission of a fragment
4) Drop assumption 1), silently discard all previously collected fragments
5) Apply filter/mangle rules to retransmitted fragment only
6) Forward fragment if accepted
Are these observations correct?
Where does this behavior originate? Is it how IP defragmentation in the
kernel works or does conntrack explicitly define/trigger this behavior?
Do you know of any documentation covering this specific issue?
Best regards
Karsten Hohmeier
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-11-05 15:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-05 15:47 conntrack + fragment retransmission: What are the basic assumptions? Karsten Hohmeier
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.