Latest IPFilter requires flushing rules for IPv6 separately

from IPv4.
This commit is contained in:
Hajimu UMEMOTO 2003-03-05 17:16:22 +00:00
parent 4bfc36240e
commit b209d7e493
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111913
2 changed files with 3 additions and 0 deletions

View File

@ -84,6 +84,7 @@ ipfilter_start()
${ipfilter_program:-/sbin/ipf} \
-f "${ipfilter_rules}" ${ipfilter_flags}
fi
${ipfilter_program:-/sbin/ipf} -6 -Fa
if [ -r "${ipv6_ipfilter_rules}" ]; then
${ipfilter_program:-/sbin/ipf} -6 \
-f "${ipv6_ipfilter_rules}" ${ipfilter_flags}
@ -127,6 +128,7 @@ ipfilter_reload()
${ipfilter_program:-/sbin/ipf} -I \
-f "${ipfilter_rules}" ${ipfilter_flags}
fi
${ipfilter_program:-/sbin/ipf} -I -6 -Fa
if [ -r "${ipv6_ipfilter_rules}" ]; then
${ipfilter_program:-/sbin/ipf} -I -6 \
-f "${ipv6_ipfilter_rules}" ${ipfilter_flags}

View File

@ -110,6 +110,7 @@ network_pass1() {
-f "${ipfilter_rules}" \
${ipfilter_flags}
fi
${ipfilter_program:-/sbin/ipf} -6 -Fa
if [ -r "${ipv6_ipfilter_rules}" ]; then
${ipfilter_program:-/sbin/ipf} -6 \
-f "${ipv6_ipfilter_rules}" \