Problem with IPFILTER
John Murphy
sub01 at freeode.co.uk
Wed Dec 22 13:18:58 PST 2004
"Dott. Surricani" <surricani at gmail.com> wrote:
>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?
It's simply a matter of having lines in /etc/rc.conf to indicate where
the rules are. I have a similar setup on my gateway and the relevant
lines look like this:
ipfilter_enable="YES"
ipfilter_program="/sbin/ipf"
ipfilter_rules="/etc/ipf.rules"
ipfilter_flags=""
ipnat_enable="YES"
ipnat_program="/sbin/ipnat"
ipnat_rules="/etc/ipnat.rules"
ipnat_flags=""
>Thanks all very much!!!!
You're welcome but questions (even newbie ones) of a technical
nature should be asked over at questions at freebsd.org.
--
John.
More information about the freebsd-newbies
mailing list