Duplicate Pve firewall rules

yena

Renowned Member
Nov 18, 2011
373
4
83
Hello,
I have 8 nodes, and i would like to
close the host server from outside.
When i have configured rules on the first one, can i copy rules on other nodes?
( for ex. coping a conf rules file? )

Thanks!
 
Hello,
I have 8 nodes, and i would like to
close the host server from outside.
When i have configured rules on the first one, can i copy rules on other nodes?
( for ex. coping a conf rules file? )

Assuming that's about "pve-firewall" (if you use just "iptables" check the related linux man pages) :


Settings are stored as follows:

"Datacenter" specific:
/etc/pve/firewall/cluster.fw

Host specific:
/etc/pve/nodes/<hostname>/host.fw

VM specific:
/etc/pve/firewall/<vm-id>.fw

You can copy and edit these files as reuqested.
 

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!