The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* Re: [FWD: NAT counting]
@ 2003-02-10 22:34 Luck, Tony
  2003-02-11  7:49 ` Leonard Milcin, Jr
  0 siblings, 1 reply; 5+ messages in thread
From: Luck, Tony @ 2003-02-10 22:34 UTC (permalink / raw)
  To: linux-kernel; +Cc: laforge

> Linux is not 'being fixed', because I don't regard this as a bug - and
> only bugs need fixing.
> 
> I don't want to have the NAT code to _always_ rewrite the IP ID because
> of performance reasons.  I think we should leave the current behaviour
> and provide an _optional_ 'IPID' target for the mangle table.  So
> everybody who wants IP ID rewriting can use that target.

The fact that someone can deduce how many hosts are hidden behind
a NAT gateway may, or may not, be a bug ... depending on whether you
think that the NAT is supposed to keep this number a secret.  But there
is a real bug here too.  Suppose you have two hosts behind your NAT
that both have connections to the same host out in internet-land. And
further suppose that both those hosts have the same value for their
incrementing counter that they use for IPID.  And finally suppose that
they both send a fragmented packet to the same port on the same host.

If your NAT router isn't re-writing the IPID, can't the target host get
confused when it sees two fragments that have a source address from your
NAT machine, that have the same IPID ... but really don't belong together?

-Tony Luck  


^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <DD755978BA8283409FB0087C39132BD1A07CC8@fmsmsx404.fm.intel.com.suse.lists.linux.kernel>]
[parent not found: <1044545755.21354.9.camel@tux.rsn.bth.se>]

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

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-10 22:34 [FWD: NAT counting] Luck, Tony
2003-02-11  7:49 ` Leonard Milcin, Jr
2003-02-11 11:45   ` Harald Welte
     [not found] <DD755978BA8283409FB0087C39132BD1A07CC8@fmsmsx404.fm.intel.com.suse.lists.linux.kernel>
2003-02-10 22:52 ` Andi Kleen
     [not found] <1044545755.21354.9.camel@tux.rsn.bth.se>
2003-02-09 10:00 ` [Fwd: " Harald Welte

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox