Hi,
maybe have a look at `man pve-firewall`. The firewall configurations are located under /etc/pve/firewall/cluster.fw for the cluster wide config, /etc/pve/nodes/<nodename>/host.fw for the host config and /etc/pve/firewall/<vmid>.fw for VMs and CTs. Also you can perform direct API calls with `pvesh`.
Hope this helps!