I'm having trouble with Iptables logs, i'm not able to get them out from kern.log, syslog and message files.
I added two rules in rsyslog.conf which redirect my messages to an "iptables.log" file but logs are also present in kern logs.
Here is my rsyslog.conf :
############### #### RULES #### ############### # Iptables :msg,contains,"IPT IN/DP: " -/var/log/iptables.log :msg,contains,"IPT6 IN/DP: " -/var/log/iptables.log & ~ # # First some standard log files. Log by facility. # auth,authpriv.* /var/log/auth.log *.*;auth,authpriv.none,cron.none -/var/log/syslog cron.* /var/log/cron.log daemon.* -/var/log/daemon.log kern.* -/var/log/kern.log lpr.* -/var/log/lpr.log mail.* -/var/log/mail.log user.* -/var/log/user.log #(some other rules ....) mail,news.none -/var/log/messages
How can I do to log iptable dropped packet only in iptables.log and not in kern.log files?