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

Re: iptables and syslog



Apparently, on Mon, Nov 19, 2001 at 12:41:16PM +0100, Michael Hierweck wrote:
> Hello everybody,
> 
> I would like to log some paket I reject using iptables:
> 
> 
> iptables -A mychain -j LOG --log-level warn
> 
> But the messages are displayed on the current console. Switching warn to 4,7 
> oder debug does not help.
> 
> I'm using Woody and did not modify the syslog.conf by hand.
> 

In /etc/init.d/klogd, change 
KLOGD=""
to
KLOGD="-c 4"
(or any number less than 4)
and restart klogd

From the klogd man page:
-c n   Sets the default log level of console messages to n.

iptables logs at priority 4 and, by default, klogd sends anything of a
priority higher than 7 to the console.

-- 
Tim Moss
debian@to11.net



Reply to: