|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
Re: [PLUG] solution: how to keep iptables from spamming the console
|
Jon,
is this correct :
If you want to stop these messages from spamming the
console do:
dmesg -n 1
from the manual
___nlevel
Set the level at which logging of messages is done to the
con___
sole. For example, ___n 1 prevents all messages, expect
panic
messages, from appearing on the console. All levels of
messages
are still written to /proc/kmsg, so syslogd(8) can still be
used
to control exactly where kernel messages appear. When the
___n
option is used, dmesg will not print or clear the kernel
ring
buffer.
is just our opinion !
Dan Masca
Managing Director
REEA inc
http://www.reea.net
Romania
email: dan@reea.net
ICQ : 28720238
YAHOO : dan_masca
AOL IM : dansorin70
----- Original Message -----
From: "Jon Nelson" <quincy@linuxnotes.net>
To: <plug@lists.phillylinux.org>
Cc: <cjf@LinuxForce.net>
Sent: Tuesday, May 13, 2003 6:12 PM
Subject: Re: [PLUG] solution: how to keep iptables from spamming the console
>
> Chris Fearnley said:
>
> >
> > LOG_LEVEL=7
> >
> > iptables -t filter -A tcprules -i eth0 -s 10.0.0.0/8 \
> > -j LOG --log-level ${LOG_LEVEL}
>
> Tried this and it stoped logging packets all together. Needed to put:
>
> kern.* /var/log/packetfilter
>
> in /etc/syslod.conf to get it to log. Even with this it still logs to the
> console (ie, appends to output of 'dmesg').
>
> Using my newfound skills with 'diff' I checked that /etc/syslog.conf,
> /etc/init.d/syslog, /etc/sysconfig/syslog and my firewall scripts were the
> same on both machines.
>
> >
> > If you search in the script for --log-level, you may discover the name
> > of the variable that can be configured to turn logging off the console.
> > 7 (debug) should keep messages in the logs, but off the console.
> >
>
> There was no mention of "--log-level" in my script(s).
>
> Any other ideas?
>
> Jon
>
> --
> Trooper Jon S. Nelson, Linux Certified Admin.
> Pa. State Police, Bureau of Criminal Investigation
> Computer Crimes Unit
> Work: 610.344.4471 Page: 866.284.1603
> jonelson@state.pa.us
>
>
> _________________________________________________________________________
> Philadelphia Linux Users Group -- http://www.phillylinux.org
> Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce
> General Discussion -- http://lists.netisland.net/mailman/listinfo/plug
_________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce
General Discussion -- http://lists.netisland.net/mailman/listinfo/plug
|
|