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 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


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to