From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 8A15F90B34 for ; Tue, 2 Apr 2024 19:17:15 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 8FC30A808 for ; Tue, 2 Apr 2024 19:16:41 +0200 (CEST) Received: from lana.proxmox.com (unknown [94.136.29.99]) by firstgate.proxmox.com (Proxmox) with ESMTP for ; Tue, 2 Apr 2024 19:16:40 +0200 (CEST) Received: by lana.proxmox.com (Postfix, from userid 10043) id A66962C39F3; Tue, 2 Apr 2024 19:16:31 +0200 (CEST) From: Stefan Hanreich To: pve-devel@lists.proxmox.com Cc: Stefan Hanreich , Wolfgang Bumiller Date: Tue, 2 Apr 2024 19:16:18 +0200 Message-Id: <20240402171629.536804-27-s.hanreich@proxmox.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240402171629.536804-1-s.hanreich@proxmox.com> References: <20240402171629.536804-1-s.hanreich@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.327 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 proxmox-firewall 26/37] firewall: add firewall crate 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: , X-List-Received-Date: Tue, 02 Apr 2024 17:17:15 -0000 Co-authored-by: Wolfgang Bumiller Signed-off-by: Stefan Hanreich --- Cargo.toml | 1 + proxmox-firewall/Cargo.toml | 17 +++++++++++++++++ proxmox-firewall/src/main.rs | 5 +++++ 3 files changed, 23 insertions(+) create mode 100644 proxmox-firewall/Cargo.toml create mode 100644 proxmox-firewall/src/main.rs diff --git a/Cargo.toml b/Cargo.toml index 877f103..f353fbf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,4 +2,5 @@ members = [ "proxmox-ve-config", "proxmox-nftables", + "proxmox-firewall", ] diff --git a/proxmox-firewall/Cargo.toml b/proxmox-firewall/Cargo.toml new file mode 100644 index 0000000..b59d973 --- /dev/null +++ b/proxmox-firewall/Cargo.toml @@ -0,0 +1,17 @@ +[package] +name = "proxmox-firewall" +version = "0.1.0" +edition = "2021" +authors = [ + "Wolfgang Bumiller ", + "Stefan Hanreich ", + "Proxmox Support Team ", +] +description = "Proxmox VE nftables firewall implementation" +license = "AGPL-3" + +[dependencies] +anyhow = "1" + +proxmox-nftables = { path = "../proxmox-nftables", features = ["config-ext"] } +proxmox-ve-config = { path = "../proxmox-ve-config" } diff --git a/proxmox-firewall/src/main.rs b/proxmox-firewall/src/main.rs new file mode 100644 index 0000000..248ac39 --- /dev/null +++ b/proxmox-firewall/src/main.rs @@ -0,0 +1,5 @@ +use anyhow::Error; + +fn main() -> Result<(), Error> { + Ok(()) +} -- 2.39.2