mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-13 04:22:58 +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.
|
||||
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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user