[SOLVED] Proxmox 8.1.4 - basic firewall not working at all?

kladze

Renowned Member
Nov 6, 2012
12
1
68
Hi all,

i'm facing some really basic issues related to firewall i think... i'm in the middle of trying to build up a firewall, but before even going any deeper i need to get basic things working and tested.

So here a basic example of things i can't the firewall to work with....

- DATACENTER, firewall enabled
Default input policy:
DROP
Default output policy: ACCEPT
Rules:
1. allow traffic on vmbr0, port 8006 - looks to be working.

See picture if needed: https://imgur.com/a/BFABgbq

- NODE - firewall enabled
Rules:

1. no rules added here

See picture if needed: https://imgur.com/a/lqDF67u

- VM- firewall enabled
Default input policy:
DROP
Default output policy: ACCEPT
rules:
1. added "in" "drop" "icmp" - https://imgur.com/a/fuBxwxb

See picture if needed: https://imgur.com/a/GBwHlm7


however ICMP still works to that client.... even though i have it dropped on a wide rule with just "in", "drop", "icmp"

windows RDP also seems to be working, in general everything seems to be working fine. on the VM... even though input rule is default "drop"

it sort of seams like the firewall ain't properly loading or applying rules.

I tried a pve-firewall status & pve-firewall restart - without any success..
 
my issue was that firewall was disabled on hardware nic, on the VM!

so on short... you have to ensure that firewall is enabled 4 places in total....

datacenter
node
over all vm fw
vm, hardware nic! (enabled by default) - i had removed mine back in the day when creating the vm
 
Last edited:
  • Like
Reactions: g777
my issue was that firewall was disabled on hardware nic, on the VM!

so on short... you have to ensure that firewall is enabled 4 places in total....

datacenter
node
over all vm fw
vm, hardware nic! (enabled by default) - i had removed mine back in the day when creating the vm
you don't need firewall enabled on the node (it's only to enable/disable rules generation for the node).
But it need to be enabled at datacenter level to enable the service + vm level (to enable vm rule generation) + vm nic(to create the fwbr bridge)
 
  • Like
Reactions: tim1014

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!