Do an ipf -y after bringing up ppp to ensure rules which mention ppp get
matched. Moification on PR to handle ipnat not being dependant on ipfilter_enable PR: 22859
This commit is contained in:
parent
9645656d2c
commit
f645349388
@ -275,6 +275,20 @@ network_pass1() {
|
||||
;;
|
||||
esac
|
||||
|
||||
# Re-Sync ipfilter
|
||||
#
|
||||
case ${ipfilter_enable} in
|
||||
[Yy][Ee][Ss])
|
||||
${ipfilter_program:-/sbin/ipf -y}
|
||||
;;
|
||||
*)
|
||||
case ${ipnat_enable} in
|
||||
[Yy][Ee][Ss])
|
||||
${ipfilter_program:-/sbin/ipf -y}
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
|
||||
# Initialize IP filtering using ipfw
|
||||
#
|
||||
if /sbin/ipfw -q flush > /dev/null 2>&1; then
|
||||
|
@ -275,6 +275,20 @@ network_pass1() {
|
||||
;;
|
||||
esac
|
||||
|
||||
# Re-Sync ipfilter
|
||||
#
|
||||
case ${ipfilter_enable} in
|
||||
[Yy][Ee][Ss])
|
||||
${ipfilter_program:-/sbin/ipf -y}
|
||||
;;
|
||||
*)
|
||||
case ${ipnat_enable} in
|
||||
[Yy][Ee][Ss])
|
||||
${ipfilter_program:-/sbin/ipf -y}
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
|
||||
# Initialize IP filtering using ipfw
|
||||
#
|
||||
if /sbin/ipfw -q flush > /dev/null 2>&1; then
|
||||
|
@ -275,6 +275,20 @@ network_pass1() {
|
||||
;;
|
||||
esac
|
||||
|
||||
# Re-Sync ipfilter
|
||||
#
|
||||
case ${ipfilter_enable} in
|
||||
[Yy][Ee][Ss])
|
||||
${ipfilter_program:-/sbin/ipf -y}
|
||||
;;
|
||||
*)
|
||||
case ${ipnat_enable} in
|
||||
[Yy][Ee][Ss])
|
||||
${ipfilter_program:-/sbin/ipf -y}
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
|
||||
# Initialize IP filtering using ipfw
|
||||
#
|
||||
if /sbin/ipfw -q flush > /dev/null 2>&1; then
|
||||
|
@ -275,6 +275,20 @@ network_pass1() {
|
||||
;;
|
||||
esac
|
||||
|
||||
# Re-Sync ipfilter
|
||||
#
|
||||
case ${ipfilter_enable} in
|
||||
[Yy][Ee][Ss])
|
||||
${ipfilter_program:-/sbin/ipf -y}
|
||||
;;
|
||||
*)
|
||||
case ${ipnat_enable} in
|
||||
[Yy][Ee][Ss])
|
||||
${ipfilter_program:-/sbin/ipf -y}
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
|
||||
# Initialize IP filtering using ipfw
|
||||
#
|
||||
if /sbin/ipfw -q flush > /dev/null 2>&1; then
|
||||
|
@ -275,6 +275,20 @@ network_pass1() {
|
||||
;;
|
||||
esac
|
||||
|
||||
# Re-Sync ipfilter
|
||||
#
|
||||
case ${ipfilter_enable} in
|
||||
[Yy][Ee][Ss])
|
||||
${ipfilter_program:-/sbin/ipf -y}
|
||||
;;
|
||||
*)
|
||||
case ${ipnat_enable} in
|
||||
[Yy][Ee][Ss])
|
||||
${ipfilter_program:-/sbin/ipf -y}
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
|
||||
# Initialize IP filtering using ipfw
|
||||
#
|
||||
if /sbin/ipfw -q flush > /dev/null 2>&1; then
|
||||
|
@ -275,6 +275,20 @@ network_pass1() {
|
||||
;;
|
||||
esac
|
||||
|
||||
# Re-Sync ipfilter
|
||||
#
|
||||
case ${ipfilter_enable} in
|
||||
[Yy][Ee][Ss])
|
||||
${ipfilter_program:-/sbin/ipf -y}
|
||||
;;
|
||||
*)
|
||||
case ${ipnat_enable} in
|
||||
[Yy][Ee][Ss])
|
||||
${ipfilter_program:-/sbin/ipf -y}
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
|
||||
# Initialize IP filtering using ipfw
|
||||
#
|
||||
if /sbin/ipfw -q flush > /dev/null 2>&1; then
|
||||
|
@ -275,6 +275,20 @@ network_pass1() {
|
||||
;;
|
||||
esac
|
||||
|
||||
# Re-Sync ipfilter
|
||||
#
|
||||
case ${ipfilter_enable} in
|
||||
[Yy][Ee][Ss])
|
||||
${ipfilter_program:-/sbin/ipf -y}
|
||||
;;
|
||||
*)
|
||||
case ${ipnat_enable} in
|
||||
[Yy][Ee][Ss])
|
||||
${ipfilter_program:-/sbin/ipf -y}
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
|
||||
# Initialize IP filtering using ipfw
|
||||
#
|
||||
if /sbin/ipfw -q flush > /dev/null 2>&1; then
|
||||
|
Loading…
Reference in New Issue
Block a user