mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 18:59:37 +00:00
Latest IPFilter requires flushing rules for IPv6 separately
from IPv4.
This commit is contained in:
parent
4bfc36240e
commit
b209d7e493
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111913
@ -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}
|
||||
|
@ -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}" \
|
||||
|
Loading…
Reference in New Issue
Block a user