From owner-freebsd-questions@FreeBSD.ORG Mon Apr 14 16:46: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 0690637B401 for ; Mon, 14 Apr 2003 16:46:18 -0700 (PDT) Received: from boris.st.hmc.edu (boris.ST.HMC.Edu [134.173.63.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7121943F93 for ; Mon, 14 Apr 2003 16:46:17 -0700 (PDT) (envelope-from jeff@unixconsults.com) Received: from boris.st.hmc.edu (localhost.st.hmc.edu [127.0.0.1]) by boris.st.hmc.edu (8.12.6p2/8.12.6) with ESMTP id h3ENkGGW034564; Mon, 14 Apr 2003 16:46:16 -0700 (PDT) (envelope-from jeff@unixconsults.com) Received: from localhost (jeff@localhost)h3ENkGk6034561; Mon, 14 Apr 2003 16:46:16 -0700 (PDT) X-Authentication-Warning: boris.st.hmc.edu: jeff owned process doing -bs Date: Mon, 14 Apr 2003 16:46:16 -0700 (PDT) From: Jeff Jirsa X-X-Sender: jeff@boris.st.hmc.edu To: Paul Hoffman In-Reply-To: Message-ID: <20030414163953.N34498-100000@boris.st.hmc.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by unixconsults.com 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: Mon, 14 Apr 2003 23:46:18 -0000 [ Sorry about the previous useless message ] On Mon, 14 Apr 2003, Paul Hoffman wrote: > 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. You can simply not use inetd, and rather, start the two ftpd processes from a script. You'll want the -D and -a options to ftpd. Specifically, I'd assume the following should work, although I don't have a box to test with at the moment: ftpd -d -ll /etc/a -D -a 10.0.0.1 ftpd -d -ll /etc/b -D -a 10.0.0.2 The man page for ftpd that I'm looking at doesn't mention the -c option, so even though you can have separate daemons running on different addresses, you may not be able to specify the alternate config files, and you may have to set the options you want on the command line. - Jeff Jirsa