If you have multiple virtual appliances in Proxmox with Zabbix-clients, then it's possible to create a "Security Group" to configure a set of firewall rules.
Zabbix-server communicates with it's Zabbix client instances using TCP 10050. It's also possible to have an "active" Zabbix client instance which will communicate using TCP 10051 to the Zabbix-server.
- Navigate in Proxmox WebUI to the Proxmox Cluster node.
- Expand the menu "Firewall"
- Navigate to "Alias"
- Click "Create" to create an alias
- Give:
name:
Zabbix-serverIP/CIDR:192.168.178.10Comment:Zabbix server
- Navigate in Proxmox WebUI to the Proxmox Cluster node.
- Expand the menu "Firewall"
- Navigate to "Security Group"
- Click "Create" to create a group
- Give name:
zabbix-client - Confirm with the "OK" button
- Select the group "zabbix-client"
- On the right-side choose for "Add"
- Configure:
Direction:
InAction:AcceptProtocol:TCPDest.Port:10050Source: aliaszabbix-serverComment:Allow inbound Zabbix agent trafficLog level:nolog - Choose again on the right side for "Add"
- Configure:
Direction:
OutAction:AcceptProtocol:TCPDest.Port:10051Destination: aliaszabbix-serverComment:Allow outbound Zabbix agent (active) trafficLog level:nolog
- Navigate in Proxmox to your "OPNsense" container
- Navigate to the Firewall-menu
- Click the "Insert: security group" button
- Select:
Security Group:
zabbix-clientEnabled:checked - Confirm with the "OK" button
I also configured Zabbix-server to ping my network devices. I want to allow this ping-checks.
So i created a "Security Group" named zabbix-ping.
With a rule:
Direction: In
Action: Accept
Protocol: icmp
ICMP-type: echo-request
Source: zabbix-server
Comment: Allow inbound Zabbix ping
Log level: nolog
I added this security group to all my LXCs/VMs.
I also create a Security Group to allow mail-delivery (smtp, tcp/25) to my mail-server.
I create an alias for my mail-server:
- Name:
Mail-server - IP/CIDR:
192.168.178.97 - Comment:
Mail server
So i created a "Security Group" named mail-delivery.
With a rule:
Direction: Out
Action: Accept
Protocol: tcp
Dest Port: 80
Destination: alias mail-server
Comment: Allow mail delivery
Log level: nolog
I added this security group to all my LXCs/VMs which make use of mail-delivery (Zabbix, PVE-node).
| Protocol | Destination | ||
|---|---|---|---|
| IN | DROP |