Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Apr 2002 14:26:38 +0800 (KRAST)
From:      Eugene Grosbein <eugen@www.svzserv.kemerovo.su>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/36955: Stock ftpd does not reuse ports in passive mode and fails
Message-ID:  <200204100626.g3A6Qcv49878@www.svzserv.kemerovo.su>

next in thread | raw e-mail | index | archive | help


>Number:         36955
>Category:       bin
>Synopsis:       Stock ftpd does not reuse ports in passive mode and fails
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 09 23:30:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Eugene Grosbein
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
Svyaz Service
>Environment:
Stock ftpd, passive mode transfers
		sysctl net.inet.ip.portrange.hi[first|last] range limited

>Description:
	I have limited net.inet.ip.portrange.hi[first|last] range
	to several hundred (600-700) of ports. If I try to download
	many thousands of small files through 100Mb ethernet connection
	using passive mode, it starts but quickly fails with diagnostics:

	<--- 425 
	Can't open passive connection: Can't assign requested address.
	
	I guess it's because it does not reuse ports of dedicated range.
	So one client can exhaust ports and passive mode transfers
	will be blocked for some time. There is no such problem with
	active mode but it's not suitable for some configurations.

>How-To-Repeat:
	See above.
>Fix:

	Perhaps, use SO_REUSEPORT option?
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204100626.g3A6Qcv49878>