IPFW and separate data files.

Steve Bertrand steve at ibctech.ca
Mon Apr 12 14:04:56 UTC 2010


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


More information about the freebsd-questions mailing list