FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 09-29-2008, 07:03 PM
Marcin Kłapkowski
 
Default iptables LOG

I set iptables rule for logging.

# iptables -I INPUT -m limit --limit 15/minute -j LOG --log-level 4
--log-prefix "firewall: "

It's logging in warning level. And my logs goes to kern.log file. It's
for now, but more over, this logs are flooded into console tty if i'm
without X. How can i set it to not goes into console? And why i have it.
In my /etc/syslog.conf i have standard settings. And only emerg is
logging into everyone. Look at my syslog.conf. What i have to change?


***** syslog.conf *****
auth,authpriv.* /var/log/auth.log
*.*;auth,authpriv.none -/var/log/syslog
daemon.* -/var/log/daemon.log
kern.* -/var/log/kern.log
lpr.* -/var/log/lpr.log
mail.* -/var/log/mail.log
user.* -/var/log/user.log
mail.info -/var/log/mail.info
mail.warn -/var/log/mail.warn
mail.err /var/log/mail.err
news.crit /var/log/news/news.crit
news.err /var/log/news/news.err
news.notice -/var/log/news/news.notice
*.=debug;
auth,authpriv.none;
news.none;mail.none -/var/log/debug
*.=info;*.=notice;*.=warn;
auth,authpriv.none;
cron,daemon.none;
mail,news.none -/var/log/messages
*.emerg *
daemon.*;mail.*;
news.err;
*.=debug;*.=info;
*.=notice;*.=warn |/dev/xconsole

********************


Thanks for help or any ideas.

Marcin Kłapkowski


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 09-30-2008, 06:54 AM
"Mumia W.."
 
Default iptables LOG

On 09/29/2008 02:03 PM, Marcin Kłapkowski wrote:

I set iptables rule for logging.

# iptables -I INPUT -m limit --limit 15/minute -j LOG --log-level 4
--log-prefix "firewall: "

It's logging in warning level. And my logs goes to kern.log file. It's
for now, but more over, this logs are flooded into console tty if i'm
without X. [...]


To find out how to stop this, read "man dmesg" and inspect the "-n" option.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 10-01-2008, 08:05 AM
Adam Hardy
 
Default iptables LOG

Mumia W.. on 30/09/08 07:54, wrote:

On 09/29/2008 02:03 PM, Marcin Kłapkowski wrote:

I set iptables rule for logging.

# iptables -I INPUT -m limit --limit 15/minute -j LOG --log-level 4
--log-prefix "firewall: "

It's logging in warning level. And my logs goes to kern.log file. It's
for now, but more over, this logs are flooded into console tty if i'm
without X. [...]


To find out how to stop this, read "man dmesg" and inspect the "-n" option.


Out of interest, will dmesg -n X survive a reboot? Or is there another config
option for this?



Adam


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 10-01-2008, 10:53 AM
Tzafrir Cohen
 
Default iptables LOG

On Wed, Oct 01, 2008 at 09:05:57AM +0100, Adam Hardy wrote:

> Out of interest, will dmesg -n X survive a reboot? Or is there another
> config option for this?

dmesg without parameters shows the currecnt content of the kernel
messages buffer. This buffer has limited size and does not survive
reboots (but kern.log does).

'dmesg -n' sets the minimal priorities of those messages to be
displayed on the console.

--
Tzafrir Cohen | tzafrir@jabber.org | VIM is
http://tzafrir.org.il | | a Mutt's
tzafrir@cohens.org.il | | best
ICQ# 16849754 | | friend


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 10-02-2008, 12:54 AM
"Mumia W.."
 
Default iptables LOG

On 10/01/2008 03:05 AM, Adam Hardy wrote:


Out of interest, will dmesg -n X survive a reboot? Or is there another
config option for this?




No, it wouldn't survive a reboot. You can place the command in
/etc/init.d/rc.local.


You can also modify /etc/sysctl.conf. "Kernel.printk" is the value you
would want to change, and on my Etch system, line 10 has a sample
"kernel.printk" line that is commented out. See if uncommenting that
works for you.


You can also read at you leisure "man systcl"


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

Thread Tools




All times are GMT. The time now is 10:38 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org