From owner-freebsd-questions@FreeBSD.ORG Mon Apr 12 14:04:56 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 322781065673 for ; Mon, 12 Apr 2010 14:04:56 +0000 (UTC) (envelope-from steve@ibctech.ca) Received: from smtp.ibctech.ca (v6.ibctech.ca [IPv6:2607:f118::b6]) by mx1.freebsd.org (Postfix) with SMTP id AD21E8FC12 for ; Mon, 12 Apr 2010 14:04:55 +0000 (UTC) Received: (qmail 22885 invoked by uid 89); 12 Apr 2010 14:07:42 -0000 Received: from unknown (HELO ?IPv6:2607:f118::5?) (steve@ibctech.ca@2607:f118::5) by 2607:f118::b6 with ESMTPA; 12 Apr 2010 14:07:42 -0000 Message-ID: <4BC32880.5050507@ibctech.ca> Date: Mon, 12 Apr 2010 10:04:48 -0400 From: Steve Bertrand User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20100111 Lightning/1.0b1 Thunderbird/3.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20100411115740.7bbf7f88@scorpio.seibercom.net> In-Reply-To: <20100411115740.7bbf7f88@scorpio.seibercom.net> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Jerry Subject: Re: IPFW and separate data files. 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: Mon, 12 Apr 2010 14:04:56 -0000 On 2010.04.11 11:57, Jerry wrote: > I am using IPFW on a FreeBSD-7.3 machine. Presently, I am loading > several tables for IPFW. So far, I have just keep the data for the > tables in the actual "ipfw-rules" referenced in the 'rc.conf' file > itself. What I would like to do is keep the data for these tables in > separate files and just have them imported when the firewall is loaded. > I have constructed a simple script that is called from the 'ipfw-rules' > file. > > My question is if there is a better way of accomplishing this? Is there > a downside to doing this way? The data for these tables tends to be > dynamic and I would rather work with the separate files than edit the > master one and risk messing it up. I have a setup that is very similar to this. I 'include' the other files from the one referenced in /etc/rc.conf by adding lines like this: . /etc/ipfw.include Steve