From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id B57F51FF16F for ; Fri, 15 Nov 2024 13:12:50 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id CACE212AF0; Fri, 15 Nov 2024 13:12:14 +0100 (CET) From: Stefan Hanreich To: pve-devel@lists.proxmox.com Date: Fri, 15 Nov 2024 13:11:06 +0100 Message-Id: <20241115121109.170200-16-s.hanreich@proxmox.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241115121109.170200-1-s.hanreich@proxmox.com> References: <20241115121109.170200-1-s.hanreich@proxmox.com> MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.233 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment KAM_LAZY_DOMAIN_SECURITY 1 Sending domain does not have any anti-forgery methods RDNS_NONE 0.793 Delivered to internal network by a host with no rDNS SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_NONE 0.001 SPF: sender does not publish an SPF Record Subject: [pve-devel] [PATCH pve-manager v4 15/18] sdn: add firewall panel X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox VE development discussion Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" RXhwb3NlIHRoZSBhYmlsaXR5IHRvIGNyZWF0ZSB2bmV0LWxldmVsIGZpcmV3YWxscyBpbiB0aGUg UFZFIFVJCgpTaWduZWQtb2ZmLWJ5OiBTdGVmYW4gSGFucmVp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lKHsKKwkgICAgbW9kZWw6ICdwdmUtc2RuLXZu ZXQnLAorCSAgICBwcm94eTogeworICAgICAgICAgICAgICAgIHR5cGU6ICdwcm94bW94JywKKwkJ dXJsOiAiL2FwaTIvanNvbi9jbHVzdGVyL3Nkbi92bmV0cyIsCisJICAgIH0sCisJICAgIHNvcnRl cnM6IHsKKwkJcHJvcGVydHk6IFsnem9uZScsICd2bmV0J10sCisJCWRpcmVjdGlvbjogJ0FTQycs CisJICAgIH0sCisJfSk7CisKKwlsZXQgcmVsb2FkID0gKCkgPT4gc3RvcmUubG9hZCgpOworCisJ bGV0IHNtID0gRXh0LmNyZWF0ZSgnRXh0LnNlbGVjdGlvbi5Sb3dNb2RlbCcsIHt9KTsKKworCUV4 dC5hcHBseShtZSwgeworCSAgICBzdG9yZTogc3RvcmUsCisJICAgIHJlbG9hZFN0b3JlOiByZWxv YWQsCisJICAgIHNlbE1vZGVsOiBzbSwKKwkgICAgdmlld0NvbmZpZzogeworCQl0cmFja092ZXI6 IGZhbHNlLAorCSAgICB9LAorCSAgICBjb2x1bW5zOiBbCisJCXsKKwkJICAgIGhlYWRlcjogJ0lE JywKKwkJICAgIGZsZXg6IDEsCisJCSAgICBkYXRhSW5kZXg6ICd2bmV0JywKKwkJfSwKKwkJewor CQkgICAgaGVhZGVyOiBnZXR0ZXh0KCdab25lJyksCisJCSAgICBmbGV4OiAxLAorCQkgICAgZGF0 YUluZGV4OiAnem9uZScsCisJCX0sCisJCXsKKwkJICAgIGhlYWRlcjogZ2V0dGV4dCgnQWxpYXMn KSwKKwkJICAgIGZsZXg6IDEsCisJCSAgICBkYXRhSW5kZXg6ICdhbGlhcycsCisJCX0sCisJICAg IF0sCisJICAgIGxpc3RlbmVyczogeworCQlhY3RpdmF0ZTogcmVsb2FkLAorCQlzaG93OiByZWxv YWQsCisJCXNlbGVjdDogZnVuY3Rpb24oX3NtLCByZWMpIHsKKwkJICAgIG1lLnRhYlBhbmVsLnNl dERpc2FibGVkKGZhbHNlKTsKKworCQkgICAgbWUuZ2V0UnVsZXNQYW5lbCgpLnNldEJhc2VVcmwo YC9jbHVzdGVyL3Nkbi92bmV0cy8ke3JlYy5pZH0vZmlyZXdhbGwvcnVsZXNgKTsKKwkJICAgIG1l LmdldE9wdGlvbnNQYW5lbCgpLnNldEJhc2VVcmwoYC9jbHVzdGVyL3Nkbi92bmV0cy8ke3JlYy5p ZH0vZmlyZXdhbGwvb3B0aW9uc2ApOworCQl9LAorCSAgICB9LAorCX0pOworCXN0b3JlLmxvYWQo KTsKKwltZS5jYWxsUGFyZW50KCk7CisgICAgfSwKK30pOwotLSAKMi4zOS41CgoKX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KcHZlLWRldmVsIG1haWxpbmcg bGlzdApwdmUtZGV2ZWxAbGlzdHMucHJveG1veC5jb20KaHR0cHM6Ly9saXN0cy5wcm94bW94LmNv bS9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vcHZlLWRldmVsCg==