version 1.8, 2000/10/01 05:58:06 |
version 1.10.4.2, 2004/11/12 06:44:17 |
Line 16 stop_precmd="test -f /etc/ipf.conf -o -f |
|
Line 16 stop_precmd="test -f /etc/ipf.conf -o -f |
|
stop_cmd="ipfilter_stop" |
stop_cmd="ipfilter_stop" |
reload_precmd="$stop_precmd" |
reload_precmd="$stop_precmd" |
reload_cmd="ipfilter_reload" |
reload_cmd="ipfilter_reload" |
|
resync_precmd="$stop_precmd" |
|
resync_cmd="ipfilter_resync" |
status_precmd="$stop_precmd" |
status_precmd="$stop_precmd" |
status_cmd="ipfilter_status" |
status_cmd="ipfilter_status" |
extra_commands="reload status" |
extra_commands="reload resync status" |
|
|
ipfilter_prestart() |
ipfilter_prestart() |
{ |
{ |
if [ ! -f /etc/ipf.conf -a ! -f /etc/ipf6.conf ]; then |
if [ ! -f /etc/ipf.conf ] && [ ! -f /etc/ipf6.conf ]; then |
warn "/etc/ipf*.conf not readable; ipfilter start aborted." |
warn "/etc/ipf*.conf not readable; ipfilter start aborted." |
# |
# |
# If booting directly to multiuser, send SIGTERM to |
# If booting directly to multiuser, send SIGTERM to |
Line 41 ipfilter_prestart() |
|
Line 43 ipfilter_prestart() |
|
ipfilter_start() |
ipfilter_start() |
{ |
{ |
echo "Enabling ipfilter." |
echo "Enabling ipfilter." |
/sbin/ipf -E -Fa |
/sbin/ipf -E |
|
/sbin/ipf -Fa |
|
/sbin/ipf -6 -Fa |
if [ -f /etc/ipf.conf ]; then |
if [ -f /etc/ipf.conf ]; then |
/sbin/ipf -f /etc/ipf.conf |
/sbin/ipf -f /etc/ipf.conf |
fi |
fi |
Line 61 ipfilter_reload() |
|
Line 65 ipfilter_reload() |
|
echo "Reloading ipfilter rules." |
echo "Reloading ipfilter rules." |
|
|
/sbin/ipf -I -Fa |
/sbin/ipf -I -Fa |
|
/sbin/ipf -6 -I -Fa |
if [ -f /etc/ipf.conf ] && ! /sbin/ipf -I -f /etc/ipf.conf; then |
if [ -f /etc/ipf.conf ] && ! /sbin/ipf -I -f /etc/ipf.conf; then |
err 1 "reload of ipf.conf failed; not swapping to new ruleset." |
err 1 "reload of ipf.conf failed; not swapping to new ruleset." |
fi |
fi |
Line 70 ipfilter_reload() |
|
Line 75 ipfilter_reload() |
|
/sbin/ipf -s |
/sbin/ipf -s |
} |
} |
|
|
|
ipfilter_resync() |
|
{ |
|
/sbin/ipf -y |
|
} |
|
|
ipfilter_status() |
ipfilter_status() |
{ |
{ |
/sbin/ipf -V |
/sbin/ipf -V |