From: Michael Tremer Date: Tue, 4 Mar 2014 11:38:13 +0000 (+0100) Subject: firewall: Add chain name to logged rules. X-Git-Tag: v2.15-rc1~52^2~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0bda23f5a1bc182592f4ac1aa9d9929769877835;p=people%2Fms%2Fipfire-2.x.git firewall: Add chain name to logged rules. This helps us to debug faster where a packet has been dropped. --- diff --git a/config/firewall/rules.pl b/config/firewall/rules.pl index 0998c1b531..4bb40a4f9c 100755 --- a/config/firewall/rules.pl +++ b/config/firewall/rules.pl @@ -330,7 +330,7 @@ sub buildrules { # Insert firewall rule. if ($LOG && !$NAT) { - run("$IPTABLES -A $chain @options @log_limit_options -j LOG"); + run("$IPTABLES -A $chain @options @log_limit_options -j LOG --log-prefix '$chain '"); } run("$IPTABLES -A $chain @options -j $target"); }