]> git.proxmox.com Git - proxmox-firewall.git/commit
config: firewall: add types for log level and rate limit
authorStefan Hanreich <s.hanreich@proxmox.com>
Fri, 29 Mar 2024 08:52:37 +0000 (09:52 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 18 Apr 2024 19:44:10 +0000 (21:44 +0200)
commit99f3c3a656affd2694424680ced12064e59c4dc6
treed148677eea33b0b5047b1687d29b18a856019628
parentb8ed6d0262a911d6ef0d1f9648d33b02bb57f1e6
config: firewall: add types for log level and rate limit

Adds types for log and (log-)rate-limiting firewall config options as
well as FromStr implementations for parsing them from the config.

Co-authored-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
Reviewed-by: Lukas Wagner <l.wagner@proxmox.com>
Reviewed-by: Max Carrara <m.carrara@proxmox.com>
proxmox-ve-config/Cargo.toml
proxmox-ve-config/src/firewall/mod.rs
proxmox-ve-config/src/firewall/parse.rs [new file with mode: 0644]
proxmox-ve-config/src/firewall/types/log.rs [new file with mode: 0644]
proxmox-ve-config/src/firewall/types/mod.rs