Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

Reinstalling syslog fixed the problem.

I forgot one of the golden rules of computing. If all else fails, restart, if that fails, reinstall.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.