How-to get anonymous FTP to use port 6021
How can I tell the inetd anonymous ftp server to listen on an different port other that 21. I tried adding port 6021 in the /etc/services file but that did not work. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How-to get anonymous FTP to use port 6021
On Monday 16 February 2004 01:56 pm, JJB wrote: How can I tell the inetd anonymous ftp server to listen on an different port other that 21. I tried adding port 6021 in the /etc/services file but that did not work. Did you restart inetd? I don't know if that's necessary; but it may be worth a try. Best of luck, Andrew Gould ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How-to get anonymous FTP to use port 6021
On Mon, Feb 16, 2004 at 02:56:34PM -0500, JJB wrote: How can I tell the inetd anonymous ftp server to listen on an different port other that 21. I tried adding port 6021 in the /etc/services file but that did not work. Don't change the default ftp port number in /etc/services -- instead add your own line, eg: mycustomftp6021/tcp Then add a line lie so into /etc/inetd.conf: mycustomftpstream tcp nowait root/usr/libexec/ftpd ftpd -l and restart inetd: # kill -HUP `cat /var/run/inetd.pid` Note that this may well result in port 6020 being used for the FTP data channel -- you'll need to make sure your firewall rules permit that. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK pgp0.pgp Description: PGP signature