On Wednesday, 02/24/2010 at 10:16 EST, "Scully, William P"
<[email protected]> wrote:
> We do have the /etc/services file but it's the one which is distributed
> with SuSE 10.  So no, although there are a lot of FTP service ports
> mentioned in that file I don't see anything specific to VSFTP or which
> explains why proc/sys/net/ipv4/ip_local_port_range is seemingly ignored
> by VSFTP daemon.

Applications can listen on ports in one of two ways:
(1) Bind the listening socket to PORT_ANY (ephemeral).  This will engage
the ip_local_port_range.
(2) Bind the listening socket to an arbitrary port.  This will not engage
the ip_local_port_range.

VSFTP always does the latter.  It does not use PORT_ANY.  :-(  See
vsf_privop_pasv_listen() at
ftp://vsftpd.beasts.org/users/cevans/untar/vsftpd-2.2.2/privops.c

Alan Altmark
z/VM Development
IBM Endicott

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to