I'm playing with NetBSD 5.1 and IP Filter (IPF). Part of IPF's
functionality includes ipmon, which can write messages via syslogd. (i.e.
I have ipmon_flags="-Dnps".) I'm using the following syslog.conf file to
make sure messages are sent to the console and root:
<begin>
# $NetBSD: syslog.conf,v 1.9 2004/07/23 03:45:42 mycroft Exp $
auth,authpriv,daemon,kern,user,local0.* /dev/console
# Log ipmon (IPFilter monitor) messages to console and/or to root
!ipmon
local0.* root
<end>
This seems to have the side-effect that when root is logged into the console,
two messages are displayed on the console for every single message sent by
ipmon. Is there a way to formulate syslog.conf to prevent this?