Skip site navigation (1)Skip section navigation (2)
Date:      15 Apr 2003 08:46:45 -0400
From:      Dan Pelleg <daniel+bsd@pelleg.org>
To:        Paul Hoffman <phoffman@proper.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Multiple FTP servers with different characteristics on one server?
Message-ID:  <u2sfzok6i8a.fsf@gs166.sp.cs.cmu.edu>
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
Paul Hoffman <phoffman@proper.com> writes:

> Greetings again. Under NetBSD, the inetd.conf file could have entries such as:
> 
> 10.0.0.1:ftp stream tcp nowait root /usr/libexec/ftpd ftpd -d -ll -c /etc/a
> 10.0.0.2:ftp stream tcp nowait root /usr/libexec/ftpd ftpd -d -ll -c /etc/b
> 
> Meaning that an FTP session request to 10.0.0.1 would use the configuration
> in /etc/a, while one to 10.0.0.2 would use the configuration in /etc/b.
> 
> 
> That doesn't work in FreeBSD 4.8: the first field is not recognized.
> 
> How can I get this functionality, just for FTP? I don't see anything in the
> inetd or ftpd man pages that indicate how this might work.

One (admittedly heavyweight) approach is to create a separate jail for each
daemon. See http://ezine.daemonnews.org/200212/ftpjail.html

-- 

  Dan Pelleg



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