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 736F81FF0DA for ; Thu, 19 Nov 2026 20:46:23 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 832A6217EA; Thu, 19 Nov 2026 20:46:09 +0100 (CET) From: Stefan Hanreich To: pve-devel@lists.proxmox.com Subject: [PATCH proxmox-firewall 08/14] nftables: statement: add a helper for setting the conntrack zone Date: Thu, 19 Nov 2026 20:45:40 +0100 Message-ID: <20261119194547.674512-9-s.hanreich@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261119194547.674512-1-s.hanreich@proxmox.com> References: <20261119194547.674512-1-s.hanreich@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1795117557310 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.240 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 URIBL_CSS_A 0.1 Contains URL's A record listed in the Spamhaus CSS blocklist [23.95.107.30] Message-ID-Hash: NMPFMVKGRLOO6GKUKHJCUVET6TXHTFRL X-Message-ID-Hash: NMPFMVKGRLOO6GKUKHJCUVET6TXHTFRL X-MailFrom: s.hanreich@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 X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Signed-off-by: Stefan Hanreich --- proxmox-nftables/src/statement.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/proxmox-nftables/src/statement.rs b/proxmox-nftables/src/statement.rs index 4433975..e500be5 100644 --- a/proxmox-nftables/src/statement.rs +++ b/proxmox-nftables/src/statement.rs @@ -394,6 +394,13 @@ impl Mangle { value: value.into(), } } + + pub fn ct_zone(value: impl Into) -> Self { + Self { + key: Ct::new("zone", None).into(), + value: value.into(), + } + } } #[derive(Clone, Copy, Debug, Deserialize, Serialize)] -- 2.47.3