From owner-freebsd-questions@FreeBSD.ORG Mon Feb 16 12:55:07 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E84F516A4D3 for ; Mon, 16 Feb 2004 12:55:07 -0800 (PST) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 429D143D2D for ; Mon, 16 Feb 2004 12:55:07 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i1GKt0oH096022 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 16 Feb 2004 20:55:01 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i1GKt0bL096021; Mon, 16 Feb 2004 20:55:00 GMT (envelope-from matthew) Date: Mon, 16 Feb 2004 20:55:00 +0000 From: Matthew Seaman To: JJB Message-ID: <20040216205500.GC95204@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , JJB , "freebsd-questions@FreeBSD. ORG" References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="eHhjakXzOLJAF9wJ" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: "freebsd-questions@FreeBSD. ORG" Subject: Re: How-to get anonymous FTP to use port 6021 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Feb 2004 20:55:08 -0000 --eHhjakXzOLJAF9wJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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: mycustomftp 6021/tcp Then add a line lie so into /etc/inetd.conf: mycustomftp stream 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 --=20 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 --eHhjakXzOLJAF9wJ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAMS4kdtESqEQa7a0RAizMAJ0Ql1DrbH5kRsJwFSQha/s9FSQ8ygCfeGzV kzaSO/zGQODi9KHiFHL6SRA= =wbru -----END PGP SIGNATURE----- --eHhjakXzOLJAF9wJ--