problem with IPFILTER

Dott. Surricani surricani at
Wed Dec 22 08:47:35 PST 2004

Hello everybody.

I've succesfully set up an Inclusive Firewall for my small Lan, how
explained in Chapter 24 of the Handbook,
with IPFILTER and ipnat (Either with kld modules).
I've included in rc.conf the lines neeeded and i've written custom
ipf.rules and ipnat.rules...

It's super, and work great, but I've got a problem/question:

each time I restart the server the rules are cleared and It leave all
packets enter and exit
an I have to type in the shell

ipf -Fa -f /etc/ipf.rules and
ipnat -CF -f /etc/ipnat.rules

It's very boring....

What I can do to automate this task?

Thanks all very much!!!!

More information about the freebsd-ipfw mailing list