Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Sep 2003 14:33:31 -0500 (CDT)
From:      grant beattie <grant@NetBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   misc/56715: ipmon starts too early and exits immediately
Message-ID:  <200309111933.h8BJXVvY001076@bloodlet.net>
Resent-Message-ID: <200309111940.h8BJeEws036640@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         56715
>Category:       misc
>Synopsis:       ipmon starts too early and exits immediately
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 11 12:40:14 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     grant beattie
>Release:        FreeBSD 5.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD bloodlet.net 5.1-RELEASE FreeBSD 5.1-RELEASE #0: Thu Sep 4 20:42:03 CDT 2003 root@elvar.org:/usr/obj/usr/src/sys/firewall i386

>Description:
ipmon does not start correctly on bootup when it is enabled, since it
is started prior to ipfilter being initialized.

>How-To-Repeat:
echo ipfilter_enable=YES >> /etc/rc.conf
echo ipmon_enable=YES >> /etc/rc.conf

note that ipmon exits after starting because ipfilter hasn't been
initialized.
>Fix:
start ipmon after initializing ipfilter. while this does introduce a
period of time between starting ipfilter and ipmon where log entries
may be lost, it is better than losing all log entries.

Index: ipmon
===================================================================
RCS file: /home/ncvs/src/etc/rc.d/ipmon,v
retrieving revision 1.6
diff -u -r1.6 ipmon
--- ipmon	14 Jul 2003 13:02:36 -0000	1.6
+++ ipmon	11 Sep 2003 19:25:03 -0000
@@ -5,7 +5,7 @@
 #
 
 # PROVIDE: ipmon
-# REQUIRE: mountcritlocal hostname sysctl cleanvar
+# REQUIRE: mountcritlocal hostname sysctl cleanvar ipfilter
 # BEFORE:  SERVERS
 # KEYWORD: FreeBSD NetBSD
 
Index: ipfilter
===================================================================
RCS file: /home/ncvs/src/etc/rc.d/ipfilter,v
retrieving revision 1.11
diff -u -r1.11 ipfilter
--- ipfilter	30 Jul 2003 18:53:59 -0000	1.11
+++ ipfilter	11 Sep 2003 19:25:04 -0000
@@ -5,7 +5,7 @@
 #
 
 # PROVIDE: ipfilter
-# REQUIRE: root beforenetlkm mountcritlocal ipmon
+# REQUIRE: root beforenetlkm mountcritlocal
 # BEFORE:  netif
 # KEYWORD: FreeBSD NetBSD
 
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200309111933.h8BJXVvY001076>