Logging to separate file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux