Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 May 2000 16:27:25 +0900 (IRKST)
From:      Chagin Dmitry <dmitry@asbaikaltv.ru>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/18429: possible bug in ftpd
Message-ID:  <Pine.BSF.4.21.0005071626170.33880-100000@alien.shel.asbaikaltv.ru>

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

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0005071626170.33880-100000>