TCP source port reuse problems

Mike Silbersack silby at silby.com
Mon Mar 5 00:56:37 UTC 2007


On Sat, 3 Mar 2007, Peter Jeremy wrote:

> First problem:  FreeBSD appears to be re-using source ports too
> rapidly.  My understanding is that a TCP socket ({src IP, src port,
> dst IP, dst port} tuple) should not be re-used for 120 seconds after
> teardown.  Sample tcpdumps and IPfilter whinges below show reuse
> after 66 and 83 seconds.

That's an incorrect understanding.  TIME_WAIT recycling has been in the 
BSD network stack for a long time, and Windows/Linux handle it also.

IPFilter is clearly broken if it's blocking the reuse of the port after 66 
seconds.  You should ask Darren to fix its state table.

Mike "Silby" Silbersack


More information about the freebsd-net mailing list