disabling syslog messages?

rihad rihad at mail.ru
Wed Dec 26 04:19:52 PST 2007


Hi, I'm using "ipfw zero NNN" to periodically zero many counters, each 
of which results in a syslog message generated despite the -q flag:

Dec 26 13:00:01 foo kernel: ipfw: Entry 1001 cleared.
Dec 26 13:00:01 foo kernel: ipfw: Entry 1002 cleared.
...
and so on. After looking in ipfw's sources in /usr/src/sbin/ipfw/ipfw2.c 
I now think that quite probably the messages are generated by some 
setsockopt call or by the kernel itself. I _could_ work around the issue 
by piping the "ipfw:" messages to /dev/null in syslogd, but there might 
be a cleaner solution?

Thank you.


More information about the freebsd-ipfw mailing list