From owner-freebsd-questions@FreeBSD.ORG Tue Apr 15 05:47:18 2003 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 290BC37B40F for ; Tue, 15 Apr 2003 05:47:18 -0700 (PDT) Received: from gs166.sp.cs.cmu.edu (GS166.SP.CS.CMU.EDU [128.2.205.169]) by mx1.FreeBSD.org (Postfix) with SMTP id 82FE843FCB for ; Tue, 15 Apr 2003 05:47:17 -0700 (PDT) (envelope-from dpelleg@gs166.sp.cs.cmu.edu) Sender: dpelleg@gs166.sp.cs.cmu.edu To: Paul Hoffman References: From: Dan Pelleg Date: 15 Apr 2003 08:46:45 -0400 In-Reply-To: Message-ID: Lines: 22 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-questions@FreeBSD.ORG Subject: Re: Multiple FTP servers with different characteristics on one server? 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: Tue, 15 Apr 2003 12:47:18 -0000 Paul Hoffman 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