all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Arthur Bied-Charreton <a.bied-charreton@proxmox.com>
To: Stefan Hanreich <s.hanreich@proxmox.com>
Cc: pve-devel@lists.proxmox.com
Subject: Re: [PATCH firewall/proxmox{-ve-rs,-firewall} 0/7] firewall: handle guest network devices without a MAC address
Date: Wed, 25 Nov 2026 08:14:11 +0100	[thread overview]
Message-ID: <hehuvnhpehfavms67mp64pevsst25cclkql3l6u76qzzfmwxa2@5x3ukyrubccr> (raw)
In-Reply-To: <20261124175718.512428-1-s.hanreich@proxmox.com>

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 <a.bied-charreton@proxmox.com> 
Tested-by: Arthur Bied-Charreton <a.bied-charreton@proxmox.com> 





      parent reply	other threads:[~2026-11-25  7:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24 17:57 [PATCH firewall/proxmox{-ve-rs,-firewall} 0/7] firewall: handle guest network devices without a MAC address Stefan Hanreich
2026-11-24 17:57 ` [PATCH proxmox-ve-rs 1/7] ve-config: guest: require the name of container network devices Stefan Hanreich
2026-11-24 17:57 ` [PATCH proxmox-ve-rs 2/7] ve-config: guest: default the type of container network devices to veth Stefan Hanreich
2026-11-24 17:57 ` [PATCH proxmox-ve-rs 3/7] ve-config: guest: accept network devices without a MAC address Stefan Hanreich
2026-11-24 17:57 ` [PATCH proxmox-firewall 4/7] firewall: guest: handle " Stefan Hanreich
2026-11-25  7:28   ` Arthur Bied-Charreton
2026-11-24 17:57 ` [PATCH proxmox-firewall 5/7] tests: add network devices without " Stefan Hanreich
2026-11-24 17:57 ` [PATCH pve-firewall 6/7] firewall: drop the traffic of guest " Stefan Hanreich
2026-11-24 17:57 ` [PATCH pve-firewall 7/7] firewall: do not generate MAC addresses for guest network devices Stefan Hanreich
2026-11-25  7:14 ` Arthur Bied-Charreton [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=hehuvnhpehfavms67mp64pevsst25cclkql3l6u76qzzfmwxa2@5x3ukyrubccr \
    --to=a.bied-charreton@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    --cc=s.hanreich@proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal