mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-05-09 08:48:27 +02:00
firewall: Add chain name to logged rules.
This helps us to debug faster where a packet has been dropped.
This commit is contained in:
committed by
Alexander Marx
parent
5f050d607c
commit
179deb37d0
@@ -330,7 +330,7 @@ sub buildrules {
|
|||||||
|
|
||||||
# Insert firewall rule.
|
# Insert firewall rule.
|
||||||
if ($LOG && !$NAT) {
|
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");
|
run("$IPTABLES -A $chain @options -j $target");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user