Read-only reading of the Proxmox VE firewall for NetOrk/netork#2654 (options A and B, decided 2026-11-28). Nothing is written: pve-firewall rules stay the operator's.
get_pve_firewall() (new firewall_mixin.py, ProxmoxFirewallMixin): the datacenter's options, rules, security groups, ipsets and aliases (/cluster/firewall/...), the node's options and rules (/nodes/{n}/firewall/...), and every guest on the node (/nodes/{n}/{qemu|lxc}/{id}/firewall/options|rules, plus each NIC's firewall=1 from the guest config). Each rule keeps PVE's own fields and its origin (cluster, group, node, guest). A part PVE refuses is None, never empty.
get_host_firewall() via napalm-device-types' existing HostFirewallMixin (no change to napalm-device-types): the node's loaded ruleset (nft list ruleset for PVE 9's proxmox-firewall, iptables-save for pve-firewall), as root over the exec path (_run_host_firewall_command).
get_hardening() on both drivers (NetOrk/netork#2776): napalm-device-types' HardeningMixin with _run_hardening_command over the exec path (root's login, so AppArmor's profiles per mode are read). The dependency is now napalm_device_types>=4.48.0. Tests: tests/test_hardening.py; the full suite passes (769).
0.18.0: the tags end at v0.16.0, and the open PR #78 already claims 0.17.0, so this takes the next number after it.
Tests (firewall): tests/test_firewall.py (mocked API: every level, a refused level is None, guest NICs, the host-firewall transport); the full suite passes (764).
Read-only reading of the Proxmox VE firewall for NetOrk/netork#2654 (options A and B, decided 2026-11-28). Nothing is written: pve-firewall rules stay the operator's.
- `get_pve_firewall()` (new `firewall_mixin.py`, `ProxmoxFirewallMixin`): the datacenter's `options`, `rules`, security `groups`, `ipsets` and `aliases` (`/cluster/firewall/...`), the node's `options` and `rules` (`/nodes/{n}/firewall/...`), and every guest on the node (`/nodes/{n}/{qemu|lxc}/{id}/firewall/options|rules`, plus each NIC's `firewall=1` from the guest config). Each rule keeps PVE's own fields and its `origin` (`cluster`, `group`, `node`, `guest`). A part PVE refuses is `None`, never empty.
- `get_host_firewall()` via napalm-device-types' existing `HostFirewallMixin` (no change to napalm-device-types): the node's loaded ruleset (`nft list ruleset` for PVE 9's proxmox-firewall, `iptables-save` for pve-firewall), as root over the exec path (`_run_host_firewall_command`).
- `get_hardening()` on **both** drivers (NetOrk/netork#2776): napalm-device-types' `HardeningMixin` with `_run_hardening_command` over the exec path (root's login, so AppArmor's profiles per mode are read). The dependency is now `napalm_device_types>=4.48.0`. Tests: `tests/test_hardening.py`; the full suite passes (769).
- 0.18.0: the tags end at v0.16.0, and the open PR #78 already claims 0.17.0, so this takes the next number after it.
Tests (firewall): `tests/test_firewall.py` (mocked API: every level, a refused level is None, guest NICs, the host-firewall transport); the full suite passes (764).
christianmanivong
changed title from feat(firewall): read the PVE firewall at every level, and the node's loaded ruleset (NetOrk/netork#2654) to feat: read the PVE firewall, the node's loaded ruleset, and the hardening reading (NetOrk/netork#2654, #2776)2026-11-28 07:03:34 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Read-only reading of the Proxmox VE firewall for NetOrk/netork#2654 (options A and B, decided 2026-11-28). Nothing is written: pve-firewall rules stay the operator's.
get_pve_firewall()(newfirewall_mixin.py,ProxmoxFirewallMixin): the datacenter'soptions,rules, securitygroups,ipsetsandaliases(/cluster/firewall/...), the node'soptionsandrules(/nodes/{n}/firewall/...), and every guest on the node (/nodes/{n}/{qemu|lxc}/{id}/firewall/options|rules, plus each NIC'sfirewall=1from the guest config). Each rule keeps PVE's own fields and itsorigin(cluster,group,node,guest). A part PVE refuses isNone, never empty.get_host_firewall()via napalm-device-types' existingHostFirewallMixin(no change to napalm-device-types): the node's loaded ruleset (nft list rulesetfor PVE 9's proxmox-firewall,iptables-savefor pve-firewall), as root over the exec path (_run_host_firewall_command).get_hardening()on both drivers (NetOrk/netork#2776): napalm-device-types'HardeningMixinwith_run_hardening_commandover the exec path (root's login, so AppArmor's profiles per mode are read). The dependency is nownapalm_device_types>=4.48.0. Tests:tests/test_hardening.py; the full suite passes (769).Tests (firewall):
tests/test_firewall.py(mocked API: every level, a refused level is None, guest NICs, the host-firewall transport); the full suite passes (764).feat(firewall): read the PVE firewall at every level, and the node's loaded ruleset (NetOrk/netork#2654)to feat: read the PVE firewall, the node's loaded ruleset, and the hardening reading (NetOrk/netork#2654, #2776)