Re-sync'ing pf rules in post command as we already did for ipfilter.

With this patch, pf rules with dynamically created devices such like tun0
works without further intervention.

Reviewed by:	mlaier
MFC after:	3 days
This commit is contained in:
Tai-hwa Liang 2006-10-26 00:29:43 +00:00
parent 324ef9892d
commit 7e75ef1374
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=163696

View File

@ -40,9 +40,10 @@ ppp_precmd()
ppp_postcmd()
{
# Re-Sync ipfilter so it picks up any new network interfaces
# Re-Sync ipfilter and pf so they pick up any new network interfaces
#
/etc/rc.d/ipfilter resync
/etc/rc.d/pf resync
}
load_rc_config $name