iptables logging on kubuntu with rsyslogd
From thelinuxwiki
versions
kubuntu version 14
problem
iptables is logging to /var/log/syslog, but we want it logging to a separate file.
solution
- create /etc/rsyslog.d/iptables.conf file with the following contents
:msg, contains, "iptables" -/var/log/iptables.log & ~
- restart rsyslogd
/etc/init.d/rsyslogd restart
- verify functionality (you might need to generate some traffic to the host)
# tail -f /var/log/iptables.log