pve firewall

goeldi

Renowned Member
Dec 6, 2012
28
1
68
I am completely lost with the firewall configuration on two Hetzner nodes, each with proxmox 6.3-1 and pve-firewall 4.1-3. Let's call them node1 and node2.
On both nodes Datacenter Firewall is enabled with ebtables=yes, input policy=DROP, Output policy=ACCEPT and no rules.
On node 2 there is a management ip-set defined.

All local firewalls in the container OS are disabled (ufw or iptables).

This is the topology:
Code:
├── node-1
│   ├── news
│   └── zabbix
└── node-2
    └── nextcloud

The Node Firewall is also enabled on both nodes with these rules:

TypeActionMacroDest.portSource portComment
outACCEPTDNS
inACCEPT10050:1005110050:10051Zabbix
outACCEPT10050:1005110050:10051Zabbix
outACCEPTWeb
outACCEPTPing
inACCEPTPing
inACCEPT80068006webgui
inACCEPTSSH
outREJECT

On Node 1 is container zabbix with these rules:

TypeActionMacroDest.portSource portComment
outACCEPTDNS
inACCEPT10050:1005110050:10051Zabbix
outACCEPT10050:1005110050:10051Zabbix
inACCEPTWeb
outACCEPTWeb
outREJECT
inREJECT

This zabbix server connects only to zabbix agents, when its firewall is disabled.

The container news firewall is enabled but does not seem to work, since e.g. a ssh login is possible, although these rules are set:

TypeActionMacroDest.portSource portComment
inACCEPT10050:1005110050:10051Zabbix
outACCEPTWeb
inACCEPTWeb
inDROP
outDROP

On Node 2 are containers, whose zabbix agent is only detected, when I disable the container firewall on them. The firewall for container nextcloud has:

TypeActionMacroDest.portSource portComment
inACCEPTDNS
outACCEPTDNS
inACCEPT10050:1005110050:10051Zabbix
outACCEPT10050:1005110050:10051Zabbix
outACCEPTWeb
inACCEPTWeb
outACCEPTMail
inACCEPTMail
inREJECT
outREJECT

So my problems are:
The zabbix server on container zabbix and the zabbix agents on cloud connect only when both container firewalls are disabled.
The container news does not work since it does not block ssh logins

I am very sorry for the size of this post. I did not figure out another way to describe my dilemma.

I would be thankful for any help.
 

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!