[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: iptables logging to console (all basic solutions have failed)



This looks extremely fruitful. If it DOESN"T work I'll let the list know:
http://lists.debian.org/debian-user-0105/msg00052.html

---Begin Quote---

Hi there!
Sorry to bring up such an old threat, but I didn't see any solutions posted,
and I just found the cause.

The problem was ipchains (or iptables) printing messages on the console no
matter how much you tried to make it shut up :) Well, I had the problem also
with smbmount.

Anyway, the problem was that klogd is displaying on the console all the
messages with any priority greater than debug (7) (see man klogd). To keep
it from doing that, load it with "klogd -c 5" for example. That will log
only errors or highr priorities and will prevent the flooding!

If you use debian, edit /etc/init.d/klogd and edit the line where it says:
KLOGD=""
to be
KLOGD="-c 4"

Have fun!
Miquel

---End Quote---

And the follow up post was:

---Begin Quote---
Thank you, thank you.

I just checked to see if you had filed a bug report and found that the bug
(and the fix) had been filed 11 days ago.

One good thing about this bug is that all those console messages about my
ipchains REJECTs and DENYs resulted in a better firewall.

But why did it affect (apparently) only a handful of people?

Lindsay

---End Quote---


-----Original Message-----
From: Adam Warner [mailto:mailing_lists@consulting.net.nz]
Sent: Thursday, 14 June 2001 7:33 p.m.
To: debian-user@lists.debian.org
Subject: iptables logging to console (all basic solutions have failed)

Hi all,

I'm running Debian testing with a custom compiled 2.4.5 kernel. Since I've
enabling logging with my iptables rules (at info and warn levels) every
single log is being output to the current console.

At no point in /etc/syslog.conf do I have any logging to /dev/console. And
attempts to log to, say, /dev/tty8 work but continue to log to the current
console.

Yes, I used apt-get install klogd after searching archives and finding that
this should be installed (I initially started a while ago with a floppy
install of 2.2r3).

I've tried rebooting, restarting syskogd and klogd and finding messages in
the archives that go along the line of "yeah, this appears to be happening
to some people."

As you can imagine, it's very easy for iptables logs to flood the console in
a second.

Thanks,
Adam





--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org



Reply to: