]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
firewall: Add chain name to logged rules.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 4 Mar 2014 11:38:13 +0000 (12:38 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 4 Mar 2014 11:38:13 +0000 (12:38 +0100)
This helps us to debug faster where a packet has been dropped.

config/firewall/rules.pl

index 0998c1b531692e986d83c68309424699489034a8..4bb40a4f9c7b7f65a2b460bdea1d50117fe186ad 100755 (executable)
@@ -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");
                                }