public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH proxmox{-ve-rs,-firewall} 0/4] sdn: zone VRF conntrack zones: follow-ups
@ 2026-11-20 15:28 Stefan Hanreich
  2026-11-20 15:28 ` [PATCH proxmox-ve-rs 1/4] sdn: config: read the nodes of zones from the running config Stefan Hanreich
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Stefan Hanreich @ 2026-11-20 15:28 UTC (permalink / raw)
  To: pve-devel

The VRF device of a zone is only created on the nodes of the zone, but
proxmox-firewall set the conntrack zone for every interface with the
name of the VRF device and the interfaces enslaved to it on all nodes.
So on a node that is not part of the zone, a manually created interface
with that name and its members got the conntrack zone as well.

proxmox-ve-config now reads the nodes of a zone from the running config,
and the conntrack zones are only applied for the zones that exist on the
local node.

Additionally, proxmox-firewall queried the network interfaces twice when
generating the ruleset, once for the altname mapping and once for the
conntrack zones of bridges in zone VRFs. They are now queried once.

Dependencies:

proxmox-firewall needs proxmox-ve-config.


proxmox-ve-rs:

Stefan Hanreich (2):
  sdn: config: read the nodes of zones from the running config
  sdn: conntrack: only map the VRFs of zones that exist on the node

 proxmox-ve-config/src/sdn/config.rs    | 18 ++++++++
 proxmox-ve-config/src/sdn/conntrack.rs | 26 ++++++-----
 proxmox-ve-config/tests/sdn/main.rs    | 63 +++++++++++++++++++++++++-
 3 files changed, 94 insertions(+), 13 deletions(-)


proxmox-firewall:

Stefan Hanreich (2):
  firewall: config: query the network interfaces only once
  firewall: sdn: only apply the conntrack zones of zones on this node

 proxmox-firewall/Cargo.toml                  |  2 +-
 proxmox-firewall/src/bin/proxmox-firewall.rs |  9 +++-
 proxmox-firewall/src/config.rs               | 24 ++++------
 proxmox-firewall/src/sdn.rs                  | 46 +++++++++++++-------
 proxmox-firewall/tests/integration_tests.rs  |  6 +--
 5 files changed, 47 insertions(+), 40 deletions(-)


Summary over all repositories:
  8 files changed, 141 insertions(+), 53 deletions(-)

-- 
Generated by murpp 0.12.1




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-20 15:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-20 15:28 [PATCH proxmox{-ve-rs,-firewall} 0/4] sdn: zone VRF conntrack zones: follow-ups Stefan Hanreich
2026-11-20 15:28 ` [PATCH proxmox-ve-rs 1/4] sdn: config: read the nodes of zones from the running config Stefan Hanreich
2026-11-20 15:28 ` [PATCH proxmox-ve-rs 2/4] sdn: conntrack: only map the VRFs of zones that exist on the node Stefan Hanreich
2026-11-20 15:28 ` [PATCH proxmox-firewall 3/4] firewall: config: query the network interfaces only once Stefan Hanreich
2026-11-20 15:28 ` [PATCH proxmox-firewall 4/4] firewall: sdn: only apply the conntrack zones of zones on this node Stefan Hanreich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal