From nobody@FreeBSD.org  Wed Dec 24 11:48:55 2003
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 38B1F16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 24 Dec 2003 11:48:55 -0800 (PST)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2FD3E43D2D
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 24 Dec 2003 11:48:53 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.10/8.12.10) with ESMTP id hBOJmqdL060671
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 24 Dec 2003 11:48:52 -0800 (PST)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.10/8.12.10/Submit) id hBOJmqsj060670;
	Wed, 24 Dec 2003 11:48:52 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200312241948.hBOJmqsj060670@www.freebsd.org>
Date: Wed, 24 Dec 2003 11:48:52 -0800 (PST)
From: John Fox Maule <john@fox-maule.dk>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ipfilter (ipf) logging not working as expected
X-Send-Pr-Version: www-2.0

>Number:         60549
>Category:       misc
>Synopsis:       ipfilter (ipf) logging not working as expected
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    darrenr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 24 11:50:23 PST 2003
>Closed-Date:    Fri Jan 02 14:49:47 MET 2004
>Last-Modified:  Fri Jan 02 14:49:47 MET 2004
>Originator:     John Fox Maule
>Release:        5.2-RC
>Organization:
N/A
>Environment:
FreeBSD nefertiti.fox-maule.dk 5.2-RC FreeBSD 5.2-RC #1: Tue Dec 23 19:27:09 CET 2003     gljohmau@nefertiti.fox-maule
.dk:/usr/obj/usr/src/sys/NEFERTITI  i386
>Description:
ipfilter/ipmon not logging at facility local0 (Looks like it logs at facility security because it logs to /var/log/messages).
ipmon running as /sbin/ipmon -Ds  

putting like this in /etc/syslog.conf also works
!ipmon
*.*                                              /var/log/ipf.log

Logging format changed ?
Before i was running FreeBSD-4.9 on this box and ipmon would log like this (on a tl interface)
Dec 23 12.14:59 nefertiti ipmon[159]: 12.14.59.424114 tl0 @0:30 etc
Now i reinstalled box as 5.2-RC it logs like this
Dec 23 12.14:59 nefertiti ipmon[159]: 12.14.59.424114 tl03241691170 @0:30 etc (It puts 10 extra numbers after interface name)
>How-To-Repeat:
Kernel config extra
options IPDIVERT
options IPFILTER
options IPFILTER_DEFAULT_BLOCK
options IPFILTER_LOG
options IPSEC
options PERFMON
options PFIL_HOOKS
>Fix:
      
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->darrenr 
Responsible-Changed-By: kris 
Responsible-Changed-When: Fri Dec 26 07:51:36 PST 2003 
Responsible-Changed-Why:  
Assign to ipf author 

http://www.freebsd.org/cgi/query-pr.cgi?pr=60549 
State-Changed-From-To: open->closed 
State-Changed-By: guido 
State-Changed-When: Fri Jan 2 14:46:51 MET 2004 
State-Changed-Why:  
Version 1.17 of ipmon.c fixes this. Cvsup to latest source, then: 
cd sbin/ipmon 
make && make install 
restart ipmon 
and the extra digits should be gone. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=60549 
>Unformatted:
Fixed with commit to ipmon.c (version 1.17)
