* iptables logging exhibites lines on current virtual console
@ 2002-12-08 20:42 Luis Fernando C. Talora
2002-12-09 11:25 ` Roberto Nibali
0 siblings, 1 reply; 2+ messages in thread
From: Luis Fernando C. Talora @ 2002-12-08 20:42 UTC (permalink / raw)
To: netfilter
Hi there!
I having some trouble with iptables' logging functionality and would
like some help. I've enabled logging for every dropped packet, using LOG
target. On /etc/syslog.conf, I'm using the following:
kern.* /dev/tty10
kern.* /var/log/kernel
(I want syslogd to generate a log of dropped packets both on console 10
and /var/log/kernel file.)
Here's the problem: I've realized that many of the log lines generated
are exhibited on current console: tty1, tty2, etc. Do anybody know the
reason of that behavior? Is there a way to change that?
Thank you all!
[]'s
Luis Fernando C. Talora
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: iptables logging exhibites lines on current virtual console
2002-12-08 20:42 iptables logging exhibites lines on current virtual console Luis Fernando C. Talora
@ 2002-12-09 11:25 ` Roberto Nibali
0 siblings, 0 replies; 2+ messages in thread
From: Roberto Nibali @ 2002-12-09 11:25 UTC (permalink / raw)
To: Luis Fernando C. Talora; +Cc: netfilter
Hello,
> Here's the problem: I've realized that many of the log lines generated
> are exhibited on current console: tty1, tty2, etc. Do anybody know the
> reason of that behavior?
Yes, the problem is that your system seems to be configured with a high
threshold value for printk in the proc-fs. Check it with:
cat /proc/sys/kernel/printk
The definitions can be found by reading ..linux/kernel/printk.c:
int console_printk[4] = {
DEFAULT_CONSOLE_LOGLEVEL, /* console_loglevel */
DEFAULT_MESSAGE_LOGLEVEL, /* default_message_loglevel */
MINIMUM_CONSOLE_LOGLEVEL, /* minimum_console_loglevel */
DEFAULT_CONSOLE_LOGLEVEL, /* default_console_loglevel */
};
An excerpt written by the excellent kernel hacker A. Rubini:
---
The four numbers in /proc/sys/kernel/printk control the ``verbosity'' level of
the printk kernel function. The first number in the array is console_loglevel:
kernel messages with priority less than or equal to the specified value will be
printed to the system console (i.e., the active virtual console, unless you've
changed it). This parameter doesn't affect the operation of klogd, which
receives all the messages in any case.
---
> Is there a way to change that?
echo "1" /proc/sys/kernel/printk
Another problem could arise (depending on the brokeness level of the
distribution you're using) when starting klogd with a wrong '-c #' value.
Best regards,
Roberto Nibali, ratz
--
echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq' | dc
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-12-09 11:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-08 20:42 iptables logging exhibites lines on current virtual console Luis Fernando C. Talora
2002-12-09 11:25 ` Roberto Nibali
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.