summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/network1
diff options
context:
space:
mode:
authordarrenr <darrenr@FreeBSD.org>2001-10-20 04:46:32 +0000
committerdarrenr <darrenr@FreeBSD.org>2001-10-20 04:46:32 +0000
commitea763822015c6970f3242275e2d00ef8b8730411 (patch)
treead2784b2a6f5d8e28aeafe14a230758847158cad /etc/rc.d/network1
parentc34948e3219e4713d5eae5536229dadde5acaf65 (diff)
downloadFreeBSD-src-ea763822015c6970f3242275e2d00ef8b8730411.zip
FreeBSD-src-ea763822015c6970f3242275e2d00ef8b8730411.tar.gz
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
Diffstat (limited to 'etc/rc.d/network1')
-rw-r--r--etc/rc.d/network114
1 files changed, 14 insertions, 0 deletions
diff --git a/etc/rc.d/network1 b/etc/rc.d/network1
index 340be28..1f50bea 100644
--- a/etc/rc.d/network1
+++ b/etc/rc.d/network1
@@ -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
OpenPOWER on IntegriCloud