From owner-freebsd-bugs Sun May 7 1:11:22 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id DB5F037BEBE for ; Sun, 7 May 2000 01:10:19 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id BAA64810; Sun, 7 May 2000 01:10:19 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from mh.irtel.ru (ns2.irtel.ru [195.46.96.1]) by hub.freebsd.org (Postfix) with ESMTP id 5A6F137B5C7 for ; Sun, 7 May 2000 00:26:04 -0700 (PDT) (envelope-from dmitry@asbaikaltv.ru) Received: from dialpool.irtel.ru by mh.irtel.ru id QAA27367 for ; Sun, 7 May 2000 16:25:48 +0900 Received: from alien.shel.asbaikaltv.ru (alien.shel.asbaikaltv.ru [192.168.0.119]) by crawl.shel.asbaikaltv.ru (8.10.1/8.10.1) with ESMTP id e477PQ231076 for ; Sun, 7 May 2000 16:25:26 +0900 (IRKST) Message-Id: Date: Sun, 7 May 2000 16:27:25 +0900 (IRKST) From: Chagin Dmitry To: FreeBSD-gnats-submit@freebsd.org Subject: bin/18429: possible bug in ftpd Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 18429 >Category: bin >Synopsis: ftpd open conn in low portrange if client in passive mode >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun May 07 01:10:19 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Dmitry Chagin >Release: FreeBSD 5.0-CURRENT i386 >Organization: as baikal tv, broadcasting company, siberia >Environment: FreeBSD alien 5.0-CURRENT FreeBSD 5.0-CURRENT #24: Fri Apr 28 00:31:21 IRKST 2000 root@alien.shel.asbaikaltv.ru:/usr/src/sys/compile/ALIENS i386 FreeBSD crawl 4.0-STABLE FreeBSD 4.0-STABLE #33: Fri May 5 18:37:40 IRKST 2000 root@crawl:/usr/src/sys/compile/RL i386 >Description: when ftp from machine running current to 4.0-STABLE and on client envir set FTP_PASSIVE_MODE=YES i see in tcpdump out that: 552 crawl.shel.asbaikaltv.ru.ftp > alien.shel.asbaikaltv.ru.audio-activmail: P 936 alien.shel.asbaikaltv.ru.audio-activmail >crawl.shel.asbaikaltv.ru.ftp: P 938 crawl.shel.asbaikaltv.ru.ftp >alien.shel.asbaikaltv.ru.audio-activmail: P 256 alien.shel.asbaikaltv.ru.video-activmail >crawl.shel.asbaikaltv.ru.1626: 853 crawl.shel.asbaikaltv.ru.1626 > alien.shel.asbaikaltv.ru.video-activmail: 002 alien.shel.asbaikaltv.ru.video-activmail >crawl.shel.asbaikaltv.ru.1626: ie ftpd open data connections on lowrange ports ftpd start in inetd: ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l sysctl set to: net.inet.ip.portrange.lowfirst: 1023 net.inet.ip.portrange.lowlast: 600 net.inet.ip.portrange.first: 1024 net.inet.ip.portrange.last: 5000 net.inet.ip.portrange.hifirst: 49152 net.inet.ip.portrange.hilast: 65535 in ftpd manpages i see U In previous versions of ftpd, when a passive mode client request- ed a data connection to the server, the server would use data ports in the range 1024..4999. Now, by default, the server will use data ports in the range 49152..65535. Specifying this option will revert to the old behavior. ftpd bug or i incorrect here? >How-To-Repeat: ftp to current or 4.0-STABLE end use tcpdump to see traffic when download something >Fix: i don't know yet :( >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message