sudo iptables -LChain INPUT (policy ACCEPT)target     prot opt source               destination         ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:httpLOG        all  --  anywhere             anywhere             LOG level warningThe log function was setup.sudo vim /etc/rsyslog.confkern.=warning -/var/log/iptables.logI want to log iptables record in /var/log/iptables.log.To enable it with sudo service rsyslog restart.To ping yahoo.com to test.The iptables record are written bothn in /var/log/iptables.log and /var/log/kern.log.How to write all the iptables record only in /var/log/iptables instead of both /var/log/kern.log and /var/log/iptables.log?
How to log iptable in /var/log/iptables instead of both kern.log and iptables.log?
iptables;logs