firewall: Add chain name to logged rules.

This helps us to debug faster where a packet has been dropped.
This commit is contained in:
Michael Tremer
2014-03-04 12:38:13 +01:00
committed by Alexander Marx
parent 5f050d607c
commit 179deb37d0

View File

@@ -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");
}