3 # $NetBSD: pf,v 1.8 2008/11/12 12:35:52 ad Exp $
7 # REQUIRE: root bootconf mountcritlocal tty network dhclient
10 $_rc_subr_loaded .
/etc
/rc.subr
14 start_precmd
="pf_prestart"
17 reload_cmd
="pf_reload"
18 status_cmd
="pf_status"
19 extra_commands
="reload status"
23 if [ ! -f ${pf_rules} ]; then
24 warn
"${pf_rules} not readable; pf start aborted."
34 echo "Enabling pf firewall."
36 # The pf_boot script has enabled pf already.
37 if [ "$autoboot" != yes ]; then
41 if [ -f ${pf_rules} ]; then
42 /sbin
/pfctl
-q -f ${pf_rules}
44 warn
"${pf_rules} not found; no pf rules loaded."
50 echo "Disabling pf firewall."
56 echo "Reloading pf rules."
57 if [ -f ${pf_rules} ]; then
58 /sbin
/pfctl
-q -f ${pf_rules}
60 warn
"${pf_rules} not found; no pf rules loaded."