From nobody@FreeBSD.org  Fri Dec 17 09:59:45 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 71FBF16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 17 Dec 2004 09:59:45 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 5B70843D2F
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 17 Dec 2004 09:59:45 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id iBH9xj7U057331
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 17 Dec 2004 09:59:45 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id iBH9xjLA057330;
	Fri, 17 Dec 2004 09:59:45 GMT
	(envelope-from nobody)
Message-Id: <200412170959.iBH9xjLA057330@www.freebsd.org>
Date: Fri, 17 Dec 2004 09:59:45 GMT
From: Valry <valery@vslash.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: INIT -> /etc/rc.d - IPFILTER IPMON conflict
X-Send-Pr-Version: www-2.3

>Number:         75180
>Category:       conf
>Synopsis:       INIT -> /etc/rc.d - IPFILTER IPMON conflict
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 17 10:00:45 GMT 2004
>Closed-Date:    Sun Jun 19 17:46:44 GMT 2005
>Last-Modified:  Sun Jun 19 17:46:44 GMT 2005
>Originator:     Valry
>Release:        FreeBSD 5.2.1-RELEASE - non generic knl
>Organization:
vslash
>Environment:
i386 - non generic kernel
>Description:
We noticed a conflict/contradiction at boot sequence btw ipfilter & ipmon script in /etc/rc.d :
ipfilter :
LINE08 : # REQUIRE root beforenetlkm mountcritlocal ipmon
ipmon : 
LINE35 - if ! sysctl net.inet.ipf.fr_pass >/dev/null 2>&1; then

This way, ipmon don't never start ; i don't found any comment about net.inet.ipf.fr_class sysctl statement, but when ipfilter is loaded, values are 514 or 513. I don't know why ipmon script don't simply check net.inet.ipf.fr_running.
Perhaps a misunderstanding on my side ? The fact is that ipmon don't start this way.
Thanks and best regards to the community.
>How-To-Repeat:
rc.conf : enabling ipfilter && ipmon with their default flags values.
>Fix:
if ipmon could start after ipfilter, just swap the REQUIRE fields btw ipmon & ipfilter to have ipmon starting AFTER ipfilter :
/etc/rc.d/ipmon :
# REQUIRE mountcritlocal hostname sysctl cleanvar ipfilter
/etc/rc.d/ipfilter :
# REQUIRE: root beforenetlkm mountcritlocal
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: matteo 
State-Changed-When: Sun Jun 19 17:46:26 GMT 2005 
State-Changed-Why:  
fixed 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75180 
>Unformatted:
