feat(firewall): read the PVE firewall at every level, and the node's loaded ruleset (NetOrk/netork#2654)

This commit is contained in:
Christian Manivong committed 2026-11-28 04:59:05 +01:00
1 parent dc0d6345a8
commit c0453655b7
6 files changed
+412

No files matched your search

+6
View File
@@ -72,6 +72,12 @@ class ProxmoxHostMixin:
"""The transport for ``KernelFactsMixin.get_kernel_facts``: the exec path."""
return self._exec_ssh_command(command)
def _run_host_firewall_command(self, command: str, *, privileged: bool) -> str:
"""The transport for ``HostFirewallMixin.get_host_firewall``: the exec path, which
runs as root either way. What the node has loaded -- proxmox-firewall's nftables
tables on PVE 9, pve-firewall's iptables chains before (NetOrk/netork#2654)."""
return str(self._exec_ssh_command(command))
def _run_service_packages_command(self, command: str) -> str:
"""The transport for ``ServicePackagesMixin.get_service_packages``: the exec path."""
return str(self._exec_ssh_command(command))