misc/56715: ipmon starts too early and exits immediately
grant beattie
grant at NetBSD.org
Thu Sep 11 12:40:16 PDT 2003
>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 at 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:
More information about the freebsd-bugs
mailing list