Re: Can't Keep Kernel Log Messages From Console
> > I've been trying to stop kernel log messages (generally from iptables)
> > from going to the console, and thus making the console unusable for login.
> > I've tried different things, but they just keep popping up.
> >
> > I have "iptables" lines like:
> >
> > iptables -A WATCH -m limit -j LOG --log-level warn --log-prefix ACCEPT-
> >
> > and those message always appear on the console -- nothing else; just these
> > messages. I've attached the "syslog.conf" file for more information. Any
> > help is appreciated! Thanks!
>
> One way is to add `kernel.printk = 1 4 1 7` to /etc/sysctl.conf.
This sounds like the best way, but I can't find any documentation on what
the four numbers mean. Do you have a reference?
Other things suggested (but not posted to the list were):
- add "-c 4" to KLOGD in /etc/init.d/klogd
- echo 4 >/proc/sys/kernel/printk
Brian
( bcwhite@precidia.com )
-------------------------------------------------------------------------------
Relationships go through seasons. Winter often comes before Spring.
Reply to: