Unable to log iptables

Posted by ActuatedCrayon on Server Fault See other posts from Server Fault or by ActuatedCrayon
Published on 2012-12-02T17:15:21Z Indexed on 2012/12/02 23:10 UTC
Read the original article Hit count: 299

Filed under:
|
|
|

I'm having trouble getting iptables to log to any file.

My iptables looks like:

Chain INPUT (policy ACCEPT 1366 packets, 433582 bytes)
pkts      bytes target     prot opt in     out     source               destination         
 869    60656 LOG        icmp --  venet0 *       0.0.0.0/0            0.0.0.0/0            LOG flags 0 level 7

Syslogd is the only log helper running. The default syslog.conf didn't work, so I tried adding "kern.=debug -/var/log/iptables.log". But the file already has "kern.* -/var/log/kern.log".

There are recent syslog entries, so it's not a permissions thing.

I'm running Ubuntu 12.04.1 with 2.6.32-042stab061.2

© Server Fault or respective owner

Related posts about iptables

Related posts about logging