Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Apr 2003 20:19:46 -0700
From:      Paul Hoffman <phoffman@proper.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Multiple FTP servers with different characteristics on one server?
Message-ID:  <p05210628bac129c91d4a@[142.131.246.132]>
In-Reply-To: <p0521061ebac0f3aeb478@[142.131.246.132]>
References:  <p0521061ebac0f3aeb478@[142.131.246.132]>

next in thread | previous in thread | raw e-mail | index | archive | help
To answer my own question:

inetd lets you run multiple instances, each one listening to a 
particular port, using the -a option. lukemftpd from the ports 
collection lets you give a directory for the set of ftpd 
configuration files.

So, now my rc.local file has:

/usr/sbin/inetd -wW -a 10.0.0.1 /etc/inetd-for-1.conf
/usr/sbin/inetd -wW -a 10.0.0.2 /etc/inetd-for-2.conf
. . .

/etc/inetd-for-1.conf has:
ftp stream tcp nowait root /usr/local/libexec/ftpd ftpd -d -ll -c 
/etc/ftp-for-1

and so on.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p05210628bac129c91d4a>