From: Michael Tremer Date: Tue, 4 Mar 2014 11:38:13 +0000 (+0100) Subject: firewall: Add chain name to logged rules. X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=commitdiff_plain;h=179deb37d02efbb6c180568ef361a7caf3ede70e;ds=sidebyside 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 0998c1b53..4bb40a4f9 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"); }