Logging IPTables to file using syslogd

From: Pyuesh Daya (pyueshd@na.co.za)
Date: 06/19/02


Date: Wed, 19 Jun 2002 18:25:33 +0200
From: Pyuesh Daya <pyueshd@na.co.za>
To: security-discuss@linuxsecurity.com


Hi Guys

I have an iptables firewall, and i am looking at logging on the firewall logs into the seperate file using syslogd, at present moment, it is being logged to the messages file and and file call firewall. My syslod.conf file is as follows :

kern.* -/var/log/firewall
*.err;authpriv.none /dev/tty10
*.err;authpriv.none |/dev/xconsole
*.emerg *

mail.* -/var/log/mail

news.crit -/var/log/news/news.crit
news.err -/var/log/news/news.err
news.notice -/var/log/news/news.notice

*.=warn;*.=err -/var/log/warn
*.crit /var/log/warn

*.*;mail.none;news.none -/var/log/messages

local0,local1.* -/var/log/localmessages
local2,local3.* -/var/log/localmessages
local4,local5.* -/var/log/localmessages
local6,local7.* -/var/log/localmessages

How do I change this so the logging is done to seperate files.

-- 
Regards
Pyuesh Daya
Tel : (011) 719 0384
Fax : (011) 719 0444
------------------------------------------------------------------------
     To unsubscribe email security-discuss-request@linuxsecurity.com
         with "unsubscribe" in the subject of the message.