You can specify the known IP or domain. You can match the IPs with subnets using the dot notation and :. 192.168.: is the same than 192.168.0.0/16, so it matches with 192.168.0.0 - 192.168.255.255
Do not forget to store your lists in /var/ossec/etc/lists and define it in the ruleset section within ossec.conf file:
<ossec_config> <ruleset> <list>etc/lists/your_list</list>You can use the lists in both custom and default rules. In your case, as you want to look for the srcip field, you have to also specify lookup="address_match_key"in the desired rules:
<list field="srcip" lookup="address_match_key">etc/lists/your_list</list>Finally, restart Wazuh:
systemctl restart wazuh-managerHere you have a CDB lists overview. Also, here you have a use case of ignoring/blocking IPs using CDB lists.
Do not hesitate to ask for help or any doubt.
Hope this helps you,
--
You received this message because you are subscribed to a topic in the Google Groups "Wazuh | Mailing List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wazuh/WGGo8Wh0Ph0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/ee6a8615-9d19-4b59-a442-786b01c17824n%40googlegroups.com.