I'm trying to get rsyslog running on ubuntu 9.10 to output my iptables alerts to a specific log file.
By default Ubuntu uses a 50-default.conf to specify the configuration and I've added a iptables.conf in the /etc/rsyslog.d folder. The contents of that file are:
- Code: Select all
:msg, startswith, "iptables denied: " -/var/log/iptables.log
& ~
the /var/log/iptables.log file has been created, yet all the alerts still keep going to the messages log.
What am I doing wrong? And for confirmation this is the iptables line
'-A INPUT -m limit --limit 5/min -j LOG --log-prefix "iptables denied: " --log-level 4 '
So the test is right...
Thank you

