From owner-freebsd-questions Mon Dec 9 8:22:47 2002 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 E583337B401 for ; Mon, 9 Dec 2002 08:22:45 -0800 (PST) Received: from bodb.mc.mpls.visi.com (bodb.mc.mpls.visi.com [208.42.156.104]) by mx1.FreeBSD.org (Postfix) with ESMTP id 40BA043EC5 for ; Mon, 9 Dec 2002 08:22:45 -0800 (PST) (envelope-from hawkeyd@visi.com) Received: from sheol.localdomain (hawkeyd-fw.dsl.visi.com [208.42.101.193]) by bodb.mc.mpls.visi.com (Postfix) with ESMTP id 9436859FB for ; Mon, 9 Dec 2002 10:22:44 -0600 (CST) Received: (from hawkeyd@localhost) by sheol.localdomain (8.11.6/8.11.6) id gB9GMhf40602 for freebsd-questions@freebsd.org; Mon, 9 Dec 2002 10:22:43 -0600 (CST) (envelope-from hawkeyd) Date: Mon, 9 Dec 2002 10:22:43 -0600 From: D J Hawkey Jr To: questions at FreeBSD Subject: jailed ftpd behind NAT'ing firewall: ftphosts? Message-ID: <20021209102243.A40506@sheol.localdomain> Reply-To: hawkeyd@visi.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi all. I want to set up a jailed FTP server on a box inside a private LAN, accessable to the outside. It all looks straight-forward enough, using a column on DaemonNews (http://ezine.daemonnews.org/200212/ftpjail.html) as a guildline, except that I want to use FreeBSD's ftpd(8). Reading the ftpd(8) man page, it seems I need to employ /etc/ftphosts, but try as I might, I can't find an example of /etc/ftphosts. The private network is 192.168.16.0/24. The public IP to my LAN is, say, 208.42.236.15. Do I need /etc/ftphosts to reflect the public IP, or does jail(8) handle this for me, or what? Even if I don't need /etc/ftphosts, could someone post an example? I find the man page sufficiently vague as to the actual contents, the user field in particular. It seems to me this is something I should just know. Thanks, Dave -- ______________________ ______________________ \__________________ \ D. J. HAWKEY JR. / __________________/ \________________/\ hawkeyd@visi.com /\________________/ http://www.visi.com/~hawkeyd/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message