From owner-freebsd-stable Sat Dec 29 2: 3:39 2001 Delivered-To: freebsd-stable@freebsd.org Received: from www.svzserv.kemerovo.su (www.svzserv.kemerovo.su [213.184.65.80]) by hub.freebsd.org (Postfix) with ESMTP id 2DF1B37B421 for ; Sat, 29 Dec 2001 02:03:35 -0800 (PST) Received: (from eugen@localhost) by www.svzserv.kemerovo.su (8.11.6/8.11.6) id fBTA3QJ99605 for stable@freebsd.org; Sat, 29 Dec 2001 17:03:26 +0700 (KRAT) (envelope-from eugen) Date: Sat, 29 Dec 2001 17:03:26 +0700 From: Eugene Grosbein To: stable@freebsd.org Subject: strange behavour of stock ftpd in STABLE: ports exhausion? Message-ID: <20011229170326.A98378@svzserv.kemerovo.su> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi! I use standard ftpd coming with FreeBSD 4.4-STABLE. My /etc/sysctl.conf contain these lines: net.inet.ip.portrange.hifirst=49152 net.inet.ip.portrange.hilast=49200 This should restrict number of concurrent passive mode connections to 49. But this does much more. Suppose, a ftp client has good link to server, 100Mb ethernet in my case. Suppose it uses passive mode and starts to download very bug number of files sequentially, one then next then next... It says TYPE I, PASV, RETR, TYPE I, PASV, RETR... So, it can download 49 files in a row then server says 425 Can't open passive connection: can't assign requested address If client does not break control connection, waits a little and starts to download the rest of files, it can download next 49 files and so on. There are no other clients connected meantime. How can this happed? Eugene Grosbein To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message