]> git.proxmox.com Git - pve-firewall.git/commit - src/PVE/Firewall.pm
add configuration option for new nftables firewall
authorStefan Hanreich <s.hanreich@proxmox.com>
Fri, 19 Apr 2024 09:42:36 +0000 (11:42 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 19 Apr 2024 18:00:35 +0000 (20:00 +0200)
commit60abf9397265a366923aa17bdde0c5a9cd3ccd32
treeed2e50fc39bdb1a57825c80e2fcd76bddbffe0bc
parent3640b561ed999e89f25701b244163cb4eff2d9b1
add configuration option for new nftables firewall

Introduces new nftables configuration option that en/disables the new
nftables firewall.

pve-firewall reads this option and only generates iptables rules when
nftables is set to `0` or if the proxmox-firewall package is not
installed at all. Conversely, proxmox-firewall only generates rules
when the option is set to `1`.

Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
 [ TL: mark as tech preview and clarify is_enabled method name ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/Firewall.pm