From owner-freebsd-bugs@FreeBSD.ORG Thu Sep 11 12:40:16 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8EDAB16A4BF for ; Thu, 11 Sep 2003 12:40:16 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9507943FE5 for ; Thu, 11 Sep 2003 12:40:14 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h8BJeEUp036641 for ; Thu, 11 Sep 2003 12:40:14 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h8BJeEws036640; Thu, 11 Sep 2003 12:40:14 -0700 (PDT) Resent-Date: Thu, 11 Sep 2003 12:40:14 -0700 (PDT) Resent-Message-Id: <200309111940.h8BJeEws036640@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, grant beattie Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 061C216A4BF for ; Thu, 11 Sep 2003 12:34:07 -0700 (PDT) Received: from bloodlet.net (bdsl.66.14.202.7.gte.net [66.14.202.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E74143FF3 for ; Thu, 11 Sep 2003 12:34:05 -0700 (PDT) (envelope-from grant@bloodlet.net) Received: from bloodlet.net (localhost [127.0.0.1]) by bloodlet.net (8.12.9/8.12.9) with ESMTP id h8BJXWbQ001077 for ; Thu, 11 Sep 2003 14:33:32 -0500 (CDT) (envelope-from grant@bloodlet.net) Received: (from grant@localhost) by bloodlet.net (8.12.9/8.12.9/Submit) id h8BJXVvY001076; Thu, 11 Sep 2003 14:33:31 -0500 (CDT) Message-Id: <200309111933.h8BJXVvY001076@bloodlet.net> Date: Thu, 11 Sep 2003 14:33:31 -0500 (CDT) From: grant beattie To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: misc/56715: ipmon starts too early and exits immediately X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Sep 2003 19:40:16 -0000 >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: