LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 03-11-2003, 02:19 PM   #1
acid2000
Member
 
Registered: Nov 2001
Location: Exeter, UK
Distribution: Gentoo 1.4
Posts: 243

Rep: Reputation: 30
iptables, changing log file from /var/log/messages


Is it possible to change the log file for iptables from /var/log/messages to something like /var/log/filewall? I've googled but can't find anything, thanks.
 
Old 03-11-2003, 02:47 PM   #2
micxz
Senior Member
 
Registered: Oct 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
You could add something like this to "/etc/syslog.conf":

kern.* -/var/log/firewall

? hope this helps, but I think it will still log IPCHAINS/TABLES actions to messages unless you specify a specific rule for this.
 
Old 03-11-2003, 07:43 PM   #3
acid2000
Member
 
Registered: Nov 2001
Location: Exeter, UK
Distribution: Gentoo 1.4
Posts: 243

Original Poster
Rep: Reputation: 30
What I really want is all iptables to go to one log file and not to messages.
Thanks
 
Old 03-11-2003, 09:38 PM   #4
micxz
Senior Member
 
Registered: Oct 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
also try man syslog.conf

I see this in there might help:

# Log all mail.info and news.info messages to info
#
mail,news.=info /var/adm/info

This will extract all messages that come either with mail.info or with news.info and store them in the file
/var/adm/info.
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleted /var/log/messages, can't log any files-iptables chingyenccy Linux - Newbie 7 02-27-2005 05:03 PM
iptables prob in /var/log/messages globeTrotter Linux - Networking 9 11-17-2004 04:02 PM
iptables prob in /var/log/messages pt3 globeTrotter Linux - Networking 5 11-12-2004 01:43 PM
iptables prob in /var/log/messages pt2 globeTrotter Red Hat 1 11-11-2004 06:23 PM
iptables and /var/log/messages Obie Linux - Security 5 08-18-2004 03:02 AM


All times are GMT -5. The time now is 10:52 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration