Skip to content

Wazuh SIEM

Overview

Wazuh 4.14.5 runs on SOC (CT105, 192.168.5.211). It monitors all active hosts in the infrastructure using a manager + agent model.

ComponentLocationPort
Manager (remoted)192.168.5.2111514 TCP (agents)
Manager (authd)192.168.5.2111515 TCP (registration)
Syslog receiver192.168.5.211514 UDP
Wazuh Indexer (OpenSearch)192.168.5.2119200
Wazuh Dashboard192.168.5.211443

Agent registration uses automatic auth — no password required. Run on any host to register:

Terminal window
/var/ossec/bin/agent-auth -m 192.168.5.211 -A "$(hostname)"

Active Agents (21)

IDNameHostIPStatus
000soc (server)PVE2 CT105127.0.0.1Active/Local
001ptu-pcWorkstationany✅ Active
003pvePVE1 host192.168.1.5✅ Active
007pbsProxmox Backup Serverany✅ Active
008CF-HQPVE2 CT103192.168.127.55✅ Active
009tdaiPVE1 VM108192.168.1.22✅ Active
010pve2PVE2 host192.168.5.114✅ Active
011ispconfig-backupPVE2 CT102192.168.5.209✅ Active
012pulsePVE2 CT104192.168.5.145✅ Active
013mx2.mail-gateway.edge.optination.netPVE2 CT106192.168.5.154✅ Active
014zabbix-appliancePVE2 VM101192.168.5.x✅ Active
015mx1PVE1 CT105192.168.1.15✅ Active
016corp-optinationPVE1 CT114192.168.1.23✅ Active
017prodPVE1 CT115192.168.1.111✅ Active
018master-controlPVE1 VM110192.168.1.21✅ Active
019mail.optination-hosting.localPVE1 VM111192.168.1.20✅ Active
020optination-panelPVE1 VM113192.168.1.50✅ Active
022energonhubPVE2 CT100192.168.5.9✅ Active
023corpPVE1 CT102192.168.1.102✅ Active
024Prod-DNS-Server-2PVE1 CT104192.168.1.25✅ Active
025optination-phase-vaultPVE1 VM112192.168.1.32✅ Active

Disconnected (expected — VMs/CTs are stopped):

IDNameReason
004optimus-woo-prod-storeVM100 stopped
005ForumPVE1 CT106 stopped

Not Monitored (by design)

  • UDM-Pro — Alpine Linux embedded; no Wazuh package available
  • Stopped VMs/CTs — no agent needed while offline

Manager Config — Key Settings

Config file: /var/ossec/etc/ossec.conf on SOC (CT105)

<!-- Syslog receiver — accepts pfSense and all LAN segments -->
<remote>
<connection>syslog</connection>
<port>514</port>
<protocol>udp</protocol>
<allowed-ips>192.168.5.0/24</allowed-ips>
<allowed-ips>192.168.1.0/24</allowed-ips>
<allowed-ips>192.168.100.0/24</allowed-ips> <!-- pfSense -->
<allowed-ips>192.168.11.0/24</allowed-ips> <!-- WAN link -->
</remote>

SCA Policies Enabled

PolicyApplies To
CIS Debian Linux 12All Debian 12 hosts
CIS AlmaLinux 8PVE2 VM101 (Zabbix)

Policy files: /var/ossec/ruleset/sca/ on SOC.

Installing an Agent (Debian/Ubuntu)

Terminal window
# 1. Set up repo
curl -fsSL https://packages.wazuh.com/key/GPG-KEY-WAZUH | \
gpg --batch --dearmor > /usr/share/keyrings/wazuh.gpg
echo "deb [signed-by=/usr/share/keyrings/wazuh.gpg] \
https://packages.wazuh.com/4.x/apt/ stable main" \
> /etc/apt/sources.list.d/wazuh.list
# 2. Install
export DEBIAN_FRONTEND=noninteractive
apt-get update -qq && apt-get install -y wazuh-agent
# 3. Fix manager address (if postinstall left placeholder)
sed -i 's|<address>MANAGER_IP</address>|<address>192.168.5.211</address>|g' \
/var/ossec/etc/ossec.conf
# 4. Register
/var/ossec/bin/agent-auth -m 192.168.5.211 -A "$(hostname)"
# 5. Enable and start
systemctl daemon-reload && systemctl enable wazuh-agent && systemctl start wazuh-agent

Known Issues & Fixes

pfSense 1213 syslog spam

Symptom: ~14/sec "Message from 192.168.100.2 not allowed" errors in Wazuh.
Root cause: pfSense syslog was hitting port 514 but 192.168.100.0/24 wasn’t in the allowed-ips list.
Fix: Added 192.168.100.0/24 and 192.168.11.0/24 to the syslog remote block in ossec.conf. Fixed 2026-05-24.

TDAI agent disconnects

Symptom: Agent 009 (tdai) goes Disconnected periodically.
Fix: qm guest exec 108 -- systemctl restart wazuh-agent

energonhub key conflict (resolved)

Symptom: CT100 (energonhub) was running under the “PVE1” key (agent 002), masking its real identity.
Fix: Stopped agent, deleted /var/ossec/etc/client.keys, re-ran agent-auth. Now registered as agent 022 “energonhub”. Fixed 2026-05-25.

Useful Commands

Terminal window
# List all agents from manager
pct exec 105 -- /var/ossec/bin/agent_control -l
# Check agent status on a host
systemctl is-active wazuh-agent
# View manager logs
pct exec 105 -- tail -f /var/ossec/logs/ossec.log
# Remove a stale agent (interactive)
pct exec 105 -- bash -c "printf 'r\nAGENT_ID\ny\n' | /var/ossec/bin/manage_agents"
# Restart manager
pct exec 105 -- systemctl restart wazuh-manager