From: "Mark E. Donaldson" Subject: RE: Logging to separate file Date: Fri, 12 Dec 2003 20:08:10 -0800 Sender: netfilter-admin@lists.netfilter.org Message-ID: <200312130408.hBD480NC016495@server5.bandwidthco.com> References: <20031209204523.29020.qmail@web40406.mail.yahoo.com> Reply-To: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0045_01C3C0EB.AA5105B0" Return-path: In-Reply-To: <20031209204523.29020.qmail@web40406.mail.yahoo.com> Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: To: 'jon west' , netfilter@lists.netfilter.org This is a multi-part message in MIME format. ------=_NextPart_000_0045_01C3C0EB.AA5105B0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit This should work: # syslog.conf: kern.=debug /var/log/iptables # IPTables Configuration: ... -j LOG --log-level debug This is the exact configuration I use and it works fine. You are remembering to restart the syslog daemon after changes, correct? kill -HUP syslogd.pid or /etc/init.d/syslog restart _____ From: netfilter-admin@lists.netfilter.org [mailto:netfilter-admin@lists.netfilter.org] On Behalf Of jon west Sent: Tuesday, December 09, 2003 12:45 PM To: netfilter@lists.netfilter.org Subject: Logging to separate file I'm trying to get logging working, again. It was logging to /var/log/messages and I tried to move it to /var/log/iptables. Now I can't get it to log to either. Redhat 9 on Intel box sysconfig.conf: (first or last line, didn't work either way) kern.=debug /var/log/iptables IPTables Configuration: ... -j LOG --log-level debug I also tried: syslog.conf *.=debug /var/log/iptables IPTables configuration: ... -j LOG --log-level debug I also tried to delete all the things I added to syslog.conf then set the IPTables configuration to just "-j LOG" but it doesn't work either. When I do an /sbin/iptables -L -vn, it says the packets are logged (then dropped on the next line) but I cannot get it to write to any files. Any help? syslog.conf (right now): kern.=debug /var/log/iptables *.info;mail.none;authpriv.none;cron.none;local6.none /var/log/messages authpriv.* /var/log/secure mail.* /var/log/maillog cron.* /var/log/cron *.emerg * uucp,news.crit /var/log/spooler local7.* /var/log/boot.log local6.* /var/log/dhcp.log Thanks. _____ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing ------=_NextPart_000_0045_01C3C0EB.AA5105B0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
This should work:
# syslog.conf:
kern.=3Ddebug   = /var/log/iptables
 
# IPTables=20 Configuration:
 ... -j LOG --log-level debug
 
This=20 is the exact configuration I use and it works fine.  You are = remembering to=20 restart the syslog daemon after changes, correct?  =
kill=20 -HUP syslogd.pid or /etc/init.d/syslog=20 restart


From: = netfilter-admin@lists.netfilter.org=20 [mailto:netfilter-admin@lists.netfilter.org] On Behalf Of jon=20 west
Sent: Tuesday, December 09, 2003 12:45 PM
To:=20 netfilter@lists.netfilter.org
Subject: Logging to separate=20 file

I'm trying to get logging working, again.  It was logging to=20 /var/log/messages and I tried to move it to /var/log/iptables.  Now = I can't=20 get it to log to either.
 
Redhat 9 on Intel box
sysconfig.conf:
(first or last line, didn't work either=20 way)
kern.=3Ddebug   /var/log/iptables
 
IPTables Configuration:
 ... -j LOG --log-level debug
 
I also tried:
syslog.conf
*.=3Ddebug  = /var/log/iptables
 
IPTables configuration:
... -j LOG --log-level debug
 
I also tried to delete all the things I added to syslog.conf then = set the=20 IPTables configuration to just "-j LOG" but it doesn't work = either.
 
When I do an /sbin/iptables -L -vn, it says the packets are logged = (then=20 dropped on the next line) but I cannot get it to write to any = files.
 
Any help?
 
syslog.conf (right now):
kern.=3Ddebug =20 /var/log/iptables
*.info;mail.none;authpriv.none;cron.none;local6.none=  =20 /var/log/messages
authpriv.*  /var/log/secure
mail.* =20 /var/log/maillog
cron.*  /var/log/cron
*.emerg =20 *
uucp,news.crit  /var/log/spooler
local7.* =20 /var/log/boot.log
local6.*  /var/log/dhcp.log
 
Thanks.


Do you Yahoo!?
New=20 Yahoo! Photos - easier uploading and sharing ------=_NextPart_000_0045_01C3C0EB.AA5105B0--