Setting up firewall programatically

Lucian

Member
Nov 7, 2017
35
1
13
41
Hello,

Is there anyway to interact with the PVE firewall, something like the "qm" utility perhaps?
I need to be able to script setting it up, but it can't be a manual procedure.
 
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!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!