From: "Daniel Lopez" Subject: log iptables Date: Mon, 17 Feb 2014 15:20:56 -0500 Message-ID: <469712C03B2D4FC2AF14F1DB8A789247@asistp.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Sender: netfilter-owner@vger.kernel.org List-ID: Content-Type: text/plain; format="flowed"; charset="us-ascii"; reply-type="response" To: netfilter@vger.kernel.org Hello I want to save the log of iptables and for this I have set up the file /etc/rsyslog.d/iptables.log : :msg, contains, "" -/var/log/iptables.log & ~ Packets arrive correctly because I can connect to the servers, but does not save the log of these lines : $IPTABLES -t nat -A PREROUTING -p TCP -i $INTERNET_IFACE -d $INTERNET_IP --dport 8181 -j DNAT --to-destination 192.168.2.26 $IPTABLES -A FORWARD -p TCP -i $INTERNET_IFACE -o $LAN_IFACE -d 192.168.2.26 --dport 8181 -j LOG --log-prefix "Port 8181:" $IPTABLES -A FORWARD -p TCP -i $INTERNET_IFACE -o $LAN_IFACE -d 192.168.2.26 --dport 8181 -j allowed $IPTABLES -A FORWARD -p TCP --sport 8181 -s 192.168.2.26 -i $LAN_IFACE -o $INTERNET_IFACE -j ACCEPT But these lines if you save: $IPTABLES -A FORWARD -m limit --limit 3/minute --limit-burst 3 -j LOG --log-level DEBUG --log-prefix "forward packet died:" Use: CentOS 6.3 64 Bits iptables 1.4.7 rsyslogd 5.8.10 Please could help correct my problem? Thank you,