From owner-freebsd-questions@FreeBSD.ORG Wed Nov 22 18:22:53 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1812A16A403 for ; Wed, 22 Nov 2006 18:22:53 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id C3B4543D46 for ; Wed, 22 Nov 2006 18:22:22 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id E1AF25F5F; Wed, 22 Nov 2006 13:22:51 -0500 (EST) X-Virus-Scanned: amavisd-new at codefab.com Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aRu0yiNHOesi; Wed, 22 Nov 2006 13:22:47 -0500 (EST) Received: from [192.168.1.251] (pool-68-161-95-165.ny325.east.verizon.net [68.161.95.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pi.codefab.com (Postfix) with ESMTP id 856445C79; Wed, 22 Nov 2006 13:22:47 -0500 (EST) Message-ID: <45649571.2080004@mac.com> Date: Wed, 22 Nov 2006 13:22:41 -0500 From: Chuck Swiger User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: vittorio References: <200611221838.04179.vdemart1@tin.it> In-Reply-To: <200611221838.04179.vdemart1@tin.it> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: IPFW & NFS X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Nov 2006 18:22:53 -0000 vittorio wrote: > I have two FreeBSD 6.1 boxes one of which (IP 10.0.0.1) is an NFS server and > the other one (IP 10.0.0.2) is, among other things, an NFS client sharing > directories with the NFS server. > It all works correctly and I can mount_nfs all the directories from the > server. > BUT, I'm now trying to use an IPFW firewall both on the server and on the > client. My simple aim is to setup connections between the 10.0.0.1 server and > the 10.0.0.2 client ** only **; no connections should be possible with other > clients! You should probably use a permit all between .1 and .2, rather than trying to use stateful rules with RPC services which will run on arbitrarily chosen ports. -- -Chuck