From: Christian Ebner Date: Wed, 15 May 2019 15:09:13 +0000 (+0200) Subject: Remove redundant logging of packets passing the tap chain. X-Git-Url: https://git.proxmox.com/?p=pve-firewall.git;a=commitdiff_plain;h=8f3aa9cc800cf0c6375aaec81186493e1f1db2be;hp=dd7d737bcb8d64ff358b82f6236cb760482c21ec Remove redundant logging of packets passing the tap chain. Incomming and outgoing packets passing the firewall bridge were unneccessarily logged, leading to double entries. The first log entry occurred when passing the bridge, the second when the packets fate was decided (ACCEPT/DROP/REJECT). Signed-off-by: Christian Ebner --- diff --git a/src/PVE/Firewall.pm b/src/PVE/Firewall.pm index f84e6d9..abcc1e8 100644 --- a/src/PVE/Firewall.pm +++ b/src/PVE/Firewall.pm @@ -2387,10 +2387,10 @@ sub generate_tap_rules_direction { # plug the tap chain to bridge chain if ($direction eq 'IN') { ruleset_addrule($ruleset, "PVEFW-FWBR-IN", - "-m physdev --physdev-is-bridged --physdev-out $iface", "-j $tapchain", $loglevel, 'FWBR-IN: ', $vmid); + "-m physdev --physdev-is-bridged --physdev-out $iface", "-j $tapchain"); } else { ruleset_addrule($ruleset, "PVEFW-FWBR-OUT", - "-m physdev --physdev-is-bridged --physdev-in $iface", "-j $tapchain", $loglevel, 'FWBR-OUT: ', $vmid); + "-m physdev --physdev-is-bridged --physdev-in $iface", "-j $tapchain"); } }