Do not forget to store your lists in /var/ossec/etc/lists and define it in the ruleset section within ossec.conf file:
Then, modify the rule in /var/ossec/etc/rules/local_rules.xml: for example if the rule that trigger the temporary block is rule ID 5706
<rule id="100002" level="0"> <if_sid>5706</if_sid> <list field="srcip" lookup="address_match_key">etc/lists/your_list</list> <description>Rule to ignore known hosts</description> <group>pci_dss_10.2.5,pci_dss_10.2.2,gpg13_7.6,gpg13_7.8,gpg13_7.13,gdpr_IV_32.2,</group> </rule>