[pve-devel] [PATCH proxmox-firewall 3/4] partially fix #6176: do not generate mac filter if firewall disabled
Stefan Hanreich
s.hanreich at proxmox.com
Wed Feb 19 11:09:48 CET 2025
The firewall generated mac filters for outgoing packets even if the
firewall was disabled for a specific interface. This was applicable to
ARP packets as well.
Signed-off-by: Stefan Hanreich <s.hanreich at proxmox.com>
---
proxmox-firewall/src/firewall.rs | 1 +
1 file changed, 1 insertion(+)
diff --git a/proxmox-firewall/src/firewall.rs b/proxmox-firewall/src/firewall.rs
index 0e0edf8..7ed9174 100644
--- a/proxmox-firewall/src/firewall.rs
+++ b/proxmox-firewall/src/firewall.rs
@@ -590,6 +590,7 @@ impl Firewall {
.network_config()
.network_devices()
.iter()
+ .filter(|(_, device)| device.has_firewall())
.map(|(index, device)| {
Expression::concat([
Expression::from(config.iface_name_by_index(*index)),
--
2.39.5
More information about the pve-devel
mailing list