Hi
David,
This log message appears because Wazuh Manager, remoted daemon, receives a package coming from an IP address that is not allowed. As this IP isn't recognized, the ID of the agent can't be obtained to decrypt the message, this is what the message refers to.
Usually, this happens when an agent is registered with a defined IP and for some reason, it changes it (this has happened a lot during the new home office modality on some companies).
Otherwise this can happen you removed those agent and they are trying to reconnect with manager, which cannot recognized them.
Note that If the
use_source_ip option of the manager wasn't no when the agents were registered, the managers will not allow them to connect, showing a message like this in the ossec.log file:
Message from '192.168.0.1' not allowed. Cannot find the ID of the agent
And this IP that is in the log, is it part of the <allowed-ips> list ? if you are configured the syslog on wazuh manager.
nano /var/ossec/etc/ossec.conf
<remote>
<connection>syslog</connection>
<port>514</port>
<protocol>tcp</protocol>
<allowed-ips>
192.168.8.0/24</allowed-ips>
<local_ip>192.168.8.25</local_ip>
</remote>
In this case, it would be best to re-register the agents after changing this option in the
ossec.conf of the master node so it looks like this:
<use_source_ip>no</use_source_ip>.systemctl restart wazuh-managerAs I can your agents IP taking as any according to your disconnected agents.
Therefore first try restart those agents manually and check again.
Linux:
systemctl restart wazuh-agentWindows (PowerShell):
Restart-Service -Name wazuhmacOS:
/Library/Ossec/bin/wazuh-control restartThis will be reconnected if there is no connectivity issue or configuration issue.
Regards,
Hasitha Upekshitha