Sync ipf(4) after starting or stopping. This is necesarry to make filter

rules for dynamically created interfaces like pppoe(4) effective.
This commit is contained in:
tron 2002-05-04 13:53:02 +00:00
parent 8ff591e85d
commit a3ed40ee7c
1 changed files with 11 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: network,v 1.37 2002/04/29 12:13:14 lukem Exp $
# $NetBSD: network,v 1.38 2002/05/04 13:53:02 tron Exp $
#
# PROVIDE: network
@ -308,6 +308,11 @@ network_start()
fi
fi
# resync ipf(4)
if checkyesno ipfilter; then
/sbin/ipf -y
fi
# XXX this must die
if [ -s /etc/netstart.local ]; then
sh /etc/netstart.local start
@ -364,6 +369,11 @@ network_stop()
#
route -n flush
# resync ipf(4)
if checkyesno ipfilter; then
/sbin/ipf -y
fi
}
load_rc_config $name