Subject: bin/26142: /etc/default/rc.conf miss default values for pf and pflogd
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <njoly@pasteur.fr>
List: netbsd-bugs
Date: 07/02/2004 13:31:52
>Number:         26142
>Category:       bin
>Synopsis:       /etc/default/rc.conf miss default values for pf and pflogd
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 02 11:33:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Nicolas Joly
>Release:        NetBSD 2.0G (-current 20040702)
>Organization:
Institut Pasteur
>Environment:
System: NetBSD lanfeust.sis.pasteur.fr 2.0G NetBSD 2.0G (LANFEUST) #1: Fri Jul 2 10:31:27 CEST 2004 njoly@lanfeust.sis.pasteur.fr:/local/src/NetBSD/obj/amd64/sys/arch/amd64/compile/LANFEUST amd64
Architecture: x86_64
Machine: amd64
>Description:

`/etc/default/rc.conf' is currently missing default values for `pf' and
`pflogs'. This generate warning messages while processing rc(8) scripts
at boot:

/etc/rc: WARNING: $pf is not set properly - see rc.conf(5).
/etc/rc: WARNING: $pflogd is not set properly - see rc.conf(5).

>How-To-Repeat:
Check warning boot messages or query rc.conf variables :

njoly@lanfeust [~]> /etc/rc.d/pf rcvar
# pf
/etc/rc.d/pf: WARNING: $pf is not set properly - see rc.conf(5).
$pf=NO

>Fix:

Index: rc.conf
===================================================================
RCS file: /cvsroot/src/etc/defaults/rc.conf,v
retrieving revision 1.59
diff -u -r1.59 rc.conf
--- rc.conf	3 Jun 2004 16:30:44 -0000	1.59
+++ rc.conf	2 Jul 2004 11:06:59 -0000
@@ -153,6 +153,8 @@
 ip6mode=host					# host, autohost or router
 ip6sitelocal=NO					# IPv6 sitelocal addrs
 rtsol=NO		rtsol_flags="-a"	# for ip6mode=autohost only
+pf=NO						# uses /etc/pf.conf
+pflogd=NO
 
 # Special treatment for interfaces that need to be downed on
 # shutdown (because they might cause unecessary costs or block resources
>Release-Note:
>Audit-Trail:
>Unformatted: