From 179deb37d02efbb6c180568ef361a7caf3ede70e Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 4 Mar 2014 12:38:13 +0100 Subject: [PATCH] firewall: Add chain name to logged rules. This helps us to debug faster where a packet has been dropped. --- config/firewall/rules.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- 2.39.2