LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-19-2004, 11:20 AM   #1
dominant
Member
 
Registered: Jan 2004
Posts: 409

Rep: Reputation: 30
Separate firewall logs and general logs


I have installed a SUSE 9.0 pro.
The kernel messages go to /var/log/messages
The firewall messages go to /var/log/warn and messages as well. So, i want the firewall messages to go only to /var/log/warn.

Can this be done?
 
Old 04-19-2004, 11:46 AM   #2
mardanian
Member
 
Registered: Mar 2004
Distribution: Fedora
Posts: 254

Rep: Reputation: 30
i am using these lines in my iptables rules set to logs. However all logs goes to /var/log/messages file

#/sbin/iptables -A INPUT -j LOG --log-prefix "input "
#/sbin/iptables -A OUTPUT -j LOG --log-prefix "output "
#/sbin/iptables -A FORWARD -j LOG --log-prefix "forward "
 
Old 04-19-2004, 12:54 PM   #3
dominant
Member
 
Registered: Jan 2004
Posts: 409

Original Poster
Rep: Reputation: 30
I mean configuring the /etc/syslog.conf
Does anyone know the exact configuration?
 
Old 04-20-2004, 01:26 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Can't. Netfilter (the kernel component of Linux firewalling) logs under a fixed facility and priority. You can't change that, the only thing you can do is make output go/copy output. If you want reporting, try using a firewall log parser (see Freshmeat).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Firewall logs in logs and terminal... robbow52 Debian 7 11-20-2004 07:13 PM
syslogd and named logs - separate file slimak Debian 3 11-16-2004 01:51 AM
Firefox logs user out? Where are error logs? case1984 Linux - General 0 10-09-2004 02:22 PM
Error logs for wireless or networking in general? Smerk Linux - Wireless Networking 0 03-04-2003 07:44 AM
firewall logs jimval7 Linux - Security 3 02-27-2002 01:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration