Date: Wed, 16 Aug 2000 19:46:40 +0200 (CEST) From: Leif Neland <leifn@neland.dk> To: Donn Miller <dmmiller@cvzoom.net> Cc: current@FreeBSD.ORG Subject: Re: ftp and /etc/services... Message-ID: <Pine.BSF.4.05.10008161940130.60642-100000@arnold.neland.dk> In-Reply-To: <Pine.BSF.4.21.0008160535340.9970-100000@acs-24-154-11-41.zoominternet.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 16 Aug 2000, Donn Miller wrote: > This is on a recently-built -current box. When I try to move ftp from > port 21 to port 2121 in /etc/services, I get a "Connection > refused" message when I try to login to anonymous ftp sites. Should ftp > be this dependent on /etc/services? What if you _have_ no services > running, e.g. inetd & portmap? Returning ftp to port 21 in services fixes > this problem. I posted earlier about my problems with ftp recently. > When you change ftp in /etc/services to 2121, you tell your machine, that ftp by default is running on port 2121 all over the world. What you want to do is _add_ a new service, eg spcl_ftp on port 2121 in /etc/services, and then in /etc/inetd.conf replace the keyword ftp with spcl_ftp: spcl_ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l If you have a standalone ftp-daemon (not invoked by inetd), you probably have a command-line option for specifying the port you want it to listen on. Leif To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" 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.05.10008161940130.60642-100000>