Trying to Figure Out the Proxmox Firewall

Stereoscope

Member
Jan 27, 2024
108
13
23
I'm trying to figure out the Proxmox firewall and my current understanding is that although there are three config files for the firewall, they all get compiled into a single set of iptables rules on the node itself. So the firewall works at the Proxmox node level.
What I don't understand is when I add a new rule to for example a VM 100 e.g. allow incoming html 8080 traffic on a hypothetical web server, then I should see VM specific rules being added to the rule set. But I don't see (when I type iptables -S) any VM specific rules or any rules for that matter being added. Can't figure out why?
I have the firewall enabled at all three levels and I've enabled it on the network card in the VM, so I've ticked everything that needs to be ticked. I wait for over a minute for the rules to propagate but grep 8080 results in nothing and I don't see any VM specific chains getting created.
 
Last edited:
At first, it can be a bit complicated, but eventually you will get the hang of it. On each level, the destination is automatically the entity itself:
  • VM firewall is configured on the VM
  • PVE Host firewall is configured on the host
  • datacenter firewall is configured on the datacenter
The great power comes from security groups defined on the datacenter level and just added on a per VM basis. I have rules e.g. for a virtual DMZ and just add it to each VM including in/out REJECT/REJECT rules. If I have a webserver (80/443), just add the security group webserver to my VM and it can be reached by webserver.

EDIT: typos