All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC]: ip_conntrack breaks UDP PMTU
@ 2003-02-14  8:06 Harald Welte
  2003-02-14 13:42 ` Patrick McHardy
  2003-02-15 17:58 ` Thomas Poehnitzsch
  0 siblings, 2 replies; 10+ messages in thread
From: Harald Welte @ 2003-02-14  8:06 UTC (permalink / raw)
  To: Netfilter Development Mailinglist; +Cc: coreteam, kaber

[-- Attachment #1: Type: text/plain, Size: 1944 bytes --]

From https://bugzilla.netfilter.org/cgi-bin/bugzilla/show_bug.cgi?id=48

> ip_conntrack defrags packets at PRE_ROUTING and LOCAL_OUT and
> refragments them at POST_ROUTING without careing about IP_DF. packets
> with IP_DF|IP_MF can be refragmented with a different size, so path
> mtu discovery is broken.  Linux nfs itself sends out packets with
> IP_DF|IP_MF.
>
> ------- Additional Comments From Harald Welte 2003-02-14 09:02 -------
>
> This is a really hard issue. 
>
> The problem is that we _need_ to defragment at NF_IP_PRE_ROUTING in
> order to have the be able to do connection tracking.  So at this point
> we would need to save the sizes of all individual fragments.  This
> would enable us to re-fragment to exactly the same size at
> POST_ROUTING. 
>
> Another obvious approach was to check for IP_DF and see if it is
> bigger than the MTU of the outgoing interface.  The problem is: before
> we do conntrack at NF_IP_PRE_ROUTING we don't know what potential NAT
> bindings apply to this connection/packet - and thus don't know the
> outgoing interface [that's why it's called PRE_ROUTING].
>
> And then, what happens if NAT has to resize (enlarge/shrink) a packet.
> How should we deal with this while re-fragmenting? 
>
> I think this needs some good discussion at netfilter-devel...

So what are we going to do?  Does anybody have an alternative (viable?)
approach?  

And if we go for my first propsal, how/where would we store the
list-of-fragment-sizes?  We certainly don't want it to be dynamically
allocated... but according to RFC791 there kan be 8192 fragments of 8
octets each...

:((

-- 
- Harald Welte <laforge@gnumonks.org>               http://www.gnumonks.org/
============================================================================
"If this were a dictatorship, it'd be a heck of a lot easier, just so long
 as I'm the dictator."  --  George W. Bush Dec 18, 2000

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2003-02-17  0:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-14  8:06 [RFC]: ip_conntrack breaks UDP PMTU Harald Welte
2003-02-14 13:42 ` Patrick McHardy
2003-02-14 14:55   ` Harald Welte
2003-02-15  5:12     ` Patrick McHardy
2003-02-15 19:34   ` [netfilter-core] " Jozsef Kadlecsik
2003-02-15 17:58 ` Thomas Poehnitzsch
2003-02-15 20:50   ` Patrick McHardy
2003-02-16 23:55     ` Thomas Poehnitzsch
2003-02-17  0:39       ` Patrick McHardy
2003-02-16 19:54   ` Harald Welte

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.