net.inet.ip.portrange.randomized=1 hurts

Mike Silbersack silby at silby.com
Tue Jun 1 17:07:38 PDT 2004


On Tue, 1 Jun 2004, Andre Oppermann wrote:

> A port should not be reused this fast.  Maybe the randomness isn't
> so random after all and choses the same port over again and again?

We use arc4random, so I don't think that's likely, but it is possible.

> > A simpler solution might be to use passive mode.  I think that you can set
> > that somewhere in the install options.
>
> Unless he does a full cycle of all available ports there shouldn't be
> a collision.
>
> --
> Andre

Since we're using random allocation, faster reuses are certainly possible.

Something fishy must be going on here, because sysinstall doesn't make too
many ftp connections, does it?  Port recycling issues should only be
showing up in applications which make thousands of connections per minute.

Mike "Silby" Silbersack


More information about the freebsd-net mailing list