From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id 6459C1FF0B3 for ; Wed, 25 Nov 2026 08:14:21 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 52F5021645; Wed, 25 Nov 2026 08:14:18 +0100 (CET) Date: Wed, 25 Nov 2026 08:14:11 +0100 From: Arthur Bied-Charreton To: Stefan Hanreich Subject: Re: [PATCH firewall/proxmox{-ve-rs,-firewall} 0/7] firewall: handle guest network devices without a MAC address Message-ID: References: <20261124175718.512428-1-s.hanreich@proxmox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261124175718.512428-1-s.hanreich@proxmox.com> X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1795590852892 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.542 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: D65IBDXUDRQFEK5IGLWJ4BJTSFTYJGWL X-Message-ID-Hash: D65IBDXUDRQFEK5IGLWJ4BJTSFTYJGWL X-MailFrom: a.bied-charreton@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: pve-devel@lists.proxmox.com X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Tue, Nov 24, 2026 at 06:57:10PM +0100, Stefan Hanreich wrote: > A guest network device without a MAC address is valid for qemu-server > and pve-container, which generate a random one each time they parse the > device. The API always stores one, but manual edits and restored > backups are accepted without any MAC or type set. > > pve-firewall built its MAC and IP filters from random addresses, a > different one for each rule and on every compile. With the MAC filter > enabled, it thus dropped all traffic the device sent, and the IP filter > dropped traffic from its link-local addresses. (unless you were really > lucky). > > proxmox-firewall failed to parse such a guest's network config > completely. > > Both firewalls now drop the traffic of a device without MAC address > explicitly if the MAC filter is enabled. and the IP filter drops its > auto-derived link-local addresses. That keeps the effective behavior > of pve-firewall, with stable rules, and proxmox-firewall behaves the > same. > [snip] tested this series with both VM and container guests, works as advertised! VM 129 with firewall enabled on net0, MAC address removed from the config manually (net0: virtio,bridge=tara,firewall=1) before the series: - pve-firewall: compile output differed on every run because of the randomly generated MAC - proxmox-firewall: compile failed entirely with the series applied: - pve-firewall: output is stable, tap129i0-OUT chain now drops unconditionally instead of matching a random MAC - proxmox-firewall: compile succeeds, warns that net0 has no MAC and adds an unconditional drop to guest-129-out CT 130 firewall and ipfilter enabled, static ipv4 on net0, tested with: A no hwaddr, no type B no hwaddr, type=veth C hwaddr set, no type before the series: - pve-firewall: A and B produced a random MAC filter and a random link-local address in the ipfilter set on every run, C was fine - proxmox-firewall: compile failed for all 3 with the series: - pve-firewall: A and B produce stable output with unconditional drop on veth130i0-OUT and the ipfilter set contains the static IP and fe80::/10 nomatch entry, C still works - proxmox-firewall: compile succeeds for all three, A and B warn and drop unconditionally, C gets the MAC filter have one comment on one of the proxmox-firewall patches but that's not a blocker IMO, consider this: Reviewed-by: Arthur Bied-Charreton Tested-by: Arthur Bied-Charreton