Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Apr 2010 10:04:48 -0400
From:      Steve Bertrand <steve@ibctech.ca>
To:        freebsd-questions@freebsd.org
Cc:        Jerry <freebsd.user@seibercom.net>
Subject:   Re: IPFW and separate data files.
Message-ID:  <4BC32880.5050507@ibctech.ca>
In-Reply-To: <20100411115740.7bbf7f88@scorpio.seibercom.net>
References:  <20100411115740.7bbf7f88@scorpio.seibercom.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BC32880.5050507>