Martin wrote regarding '[SLE] ftp and ftp-data' on Fri, Nov 12 at 03:18:
Hi all,
just a dumb question: is the port for ftp-data always ftp-1 ? I mean: usually ftp == 21 and ftp-data == 20, so if I start a FTP server on, say, 50021, would ftp-data be 50020 by default? if not, where do I configure that ftpd's behaviour?
My interpretation of RFC959, section 3.2, is that ftp-data will automagically be assigned to controlport-1, so if you specify the control port as 50021, then the data port will be determined to be 50020 by a properly written server program. A stupid program may choose 20 regardless. Then again, I think that active FTP is a stupid protocol in general (passive's almost as stupid), and that FTP is in general not a terribly good protocol, esp. in the presence of lots of other good protocols (notably http 1.1 and rsync). :) --Danny, pointing you to faqs.org for more details