From lyngbol@bifrost.lyngbol.dk  Sun Dec  8 10:11:28 2002
Return-Path: <lyngbol@bifrost.lyngbol.dk>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C23D037B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  8 Dec 2002 10:11:28 -0800 (PST)
Received: from bifrost.lyngbol.dk (bifrost.lyngbol.dk [193.162.32.2])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E894643EA9
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  8 Dec 2002 10:11:27 -0800 (PST)
	(envelope-from lyngbol@bifrost.lyngbol.dk)
Received: from bifrost.lyngbol.dk (localhost [127.0.0.1])
	by bifrost.lyngbol.dk (8.12.6/8.12.6) with ESMTP id gB8IBQ1x009347
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 8 Dec 2002 19:11:26 +0100 (CET)
	(envelope-from lyngbol@bifrost.lyngbol.dk)
Received: (from lyngbol@localhost)
	by bifrost.lyngbol.dk (8.12.6/8.12.6/Submit) id gB8IBPOd009346;
	Sun, 8 Dec 2002 19:11:25 +0100 (CET)
Message-Id: <200212081811.gB8IBPOd009346@bifrost.lyngbol.dk>
Date: Sun, 8 Dec 2002 19:11:25 +0100 (CET)
From: Michael Lyngbl <lyngbol@bifrost.lyngbol.dk>
Reply-To: Michael Lyngbl <lyngbol@bifrost.lyngbol.dk>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: /etc/rc.d/ipfilter; ipfilter_start() need to enable ipfilter
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         46103
>Category:       conf
>Synopsis:       /etc/rc.d/ipfilter; ipfilter_start() need to enable ipfilter
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    mtm
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 08 10:20:01 PST 2002
>Closed-Date:    Tue Apr 29 19:20:22 PDT 2003
>Last-Modified:  Tue Apr 29 19:20:22 PDT 2003
>Originator:     Michael Lyngbl
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD bifrost 5.0-CURRENT FreeBSD 5.0-CURRENT #4: Fri Dec 6 23:56:04 CET 2002 lyngbol@bifrost:/usr/src/sys/i386/compile/BIFROST i386

>Description:
	/etc/rc.d/ipfilter need to enable ipfilter in ipfilter_start(). 

	Elseway a `/etc/rc.d/ipfilter restart' will disable ipfilter but not enable it again.

	/etc/rc.d/ipfilter does work on boot as a kernel compiled with 'options IPFILTER' enables ipfilter.
>How-To-Repeat:
	Run `/etc/rc.d/ipfilter restart' or do `/etc/rc.d/ipfilter stop' and `/etc/rc.d/ipfilter start'
>Fix:

--- /tmp/ipfilter	Sat Dec  7 00:13:53 2002
+++ /etc/rc.d/ipfilter	Sat Dec  7 00:14:33 2002
@@ -79,7 +79,7 @@
 	echo "Enabling ipfilter."
 	case ${OSTYPE} in
 	FreeBSD)
-		${ipfilter_program:-/sbin/ipf} -Fa
+		${ipfilter_program:-/sbin/ipf} -E -Fa
 		if [ -r "${ipfilter_rules}" ]; then
 			${ipfilter_program:-/sbin/ipf} \
 			    -f "${ipfilter_rules}" ${ipfilter_flags}


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->mtm 
Responsible-Changed-By: mtm 
Responsible-Changed-When: Sun Feb 23 14:44:58 PST 2003 
Responsible-Changed-Why:  
It looks reasonable, but since I don't know much about ipfilter 
it will take me some time to test. 
Take this PR so I don't forget about it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=46103 
State-Changed-From-To: open->closed 
State-Changed-By: mtm 
State-Changed-When: Tue Apr 29 19:19:53 PDT 2003 
State-Changed-Why:  
Committed. Thanks! 

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