The reload of ipf(8) rules should depend on $ipfilter_enable, not
$ipfilter_active. $ipfilter_enable is set to "NO" if modules fail to load, and $ipfilter_active can be "YES" when we are not using ipf(8). MFC after: 3 days
This commit is contained in:
parent
e0864be24c
commit
7a82d7421f
@ -298,12 +298,11 @@ network_pass1() {
|
||||
|
||||
# Re-Sync ipfilter so it picks up any new network interfaces
|
||||
#
|
||||
case ${ipfilter_active} in
|
||||
case ${ipfilter_enable} in
|
||||
[Yy][Ee][Ss])
|
||||
${ipfilter_program:-/sbin/ipf} -y ${ipfilter_flags} >/dev/null
|
||||
;;
|
||||
esac
|
||||
unset ipfilter_active
|
||||
|
||||
# Initialize IP filtering using ipfw
|
||||
#
|
||||
|
@ -298,12 +298,11 @@ network_pass1() {
|
||||
|
||||
# Re-Sync ipfilter so it picks up any new network interfaces
|
||||
#
|
||||
case ${ipfilter_active} in
|
||||
case ${ipfilter_enable} in
|
||||
[Yy][Ee][Ss])
|
||||
${ipfilter_program:-/sbin/ipf} -y ${ipfilter_flags} >/dev/null
|
||||
;;
|
||||
esac
|
||||
unset ipfilter_active
|
||||
|
||||
# Initialize IP filtering using ipfw
|
||||
#
|
||||
|
@ -298,12 +298,11 @@ network_pass1() {
|
||||
|
||||
# Re-Sync ipfilter so it picks up any new network interfaces
|
||||
#
|
||||
case ${ipfilter_active} in
|
||||
case ${ipfilter_enable} in
|
||||
[Yy][Ee][Ss])
|
||||
${ipfilter_program:-/sbin/ipf} -y ${ipfilter_flags} >/dev/null
|
||||
;;
|
||||
esac
|
||||
unset ipfilter_active
|
||||
|
||||
# Initialize IP filtering using ipfw
|
||||
#
|
||||
|
@ -298,12 +298,11 @@ network_pass1() {
|
||||
|
||||
# Re-Sync ipfilter so it picks up any new network interfaces
|
||||
#
|
||||
case ${ipfilter_active} in
|
||||
case ${ipfilter_enable} in
|
||||
[Yy][Ee][Ss])
|
||||
${ipfilter_program:-/sbin/ipf} -y ${ipfilter_flags} >/dev/null
|
||||
;;
|
||||
esac
|
||||
unset ipfilter_active
|
||||
|
||||
# Initialize IP filtering using ipfw
|
||||
#
|
||||
|
@ -298,12 +298,11 @@ network_pass1() {
|
||||
|
||||
# Re-Sync ipfilter so it picks up any new network interfaces
|
||||
#
|
||||
case ${ipfilter_active} in
|
||||
case ${ipfilter_enable} in
|
||||
[Yy][Ee][Ss])
|
||||
${ipfilter_program:-/sbin/ipf} -y ${ipfilter_flags} >/dev/null
|
||||
;;
|
||||
esac
|
||||
unset ipfilter_active
|
||||
|
||||
# Initialize IP filtering using ipfw
|
||||
#
|
||||
|
@ -298,12 +298,11 @@ network_pass1() {
|
||||
|
||||
# Re-Sync ipfilter so it picks up any new network interfaces
|
||||
#
|
||||
case ${ipfilter_active} in
|
||||
case ${ipfilter_enable} in
|
||||
[Yy][Ee][Ss])
|
||||
${ipfilter_program:-/sbin/ipf} -y ${ipfilter_flags} >/dev/null
|
||||
;;
|
||||
esac
|
||||
unset ipfilter_active
|
||||
|
||||
# Initialize IP filtering using ipfw
|
||||
#
|
||||
|
@ -298,12 +298,11 @@ network_pass1() {
|
||||
|
||||
# Re-Sync ipfilter so it picks up any new network interfaces
|
||||
#
|
||||
case ${ipfilter_active} in
|
||||
case ${ipfilter_enable} in
|
||||
[Yy][Ee][Ss])
|
||||
${ipfilter_program:-/sbin/ipf} -y ${ipfilter_flags} >/dev/null
|
||||
;;
|
||||
esac
|
||||
unset ipfilter_active
|
||||
|
||||
# Initialize IP filtering using ipfw
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user