From f33b9c807141eb70a2154bef57707092ad9ebc2d Mon Sep 17 00:00:00 2001 From: Stefan Hanreich Date: Fri, 29 Mar 2024 10:47:10 +0100 Subject: [PATCH] firewall: add firewall crate Co-authored-by: Wolfgang Bumiller Signed-off-by: Stefan Hanreich Reviewed-by: Lukas Wagner Reviewed-by: Max Carrara --- 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(()) +}