pve-firewall manages the Proxmox VE firewall including cluster-wide rules, host rules, and per-VM/container rules. Adversaries can manipulate firewall rules to enable lateral movement, disable security controls, or establish persistence through allowed network paths.
/usr/sbin/pve-firewall/etc/pve/firewall/cluster.fw/etc/pve/firewall/Show firewall status for the cluster and local node.
pve-firewall status
pve-firewall statuspve-firewall localnetRead cluster-wide firewall rules.
cat /etc/pve/firewall/cluster.fw
Read host-specific firewall rules.
cat /etc/pve/nodes/{node}/host.fw
Read VM/container-specific firewall rules.
cat /etc/pve/firewall/{vmid}.fw
Compile and display the iptables rules that will be applied.
pve-firewall compile
pve-firewall compile | grep -E "ACCEPT|DROP"Disable the firewall on a specific node.
pvesh set /nodes/{node}/firewall/options --enable 0
Add a firewall rule allowing inbound traffic.
pvesh create /cluster/firewall/rules --action ACCEPT --type in --source 0.0.0.0/0 --dport 4444 --proto tcp