<!-- Active response -->
<command>
<name>firewall-drop</name>
<executable>firewall-drop.sh</executable>
<expect>srcip</expect>
<timeout_allowed>no</timeout_allowed>
</command>
<active-response>
<command>firewall-drop</command>
<location>local</location>
<rules_group>web,|attack,</rules_group>
</active-response>firewall-drop.shvar/ossec/bin/agent_control -b 1.2.3.4 -f firewall-drop -u 002active-responce.logipset -L blacklist
Name: blacklist
Type: hash:ip
Revision: 2
Header: family inet hashsize 1024 maxelem 65536
Size in memory: 128
References: 1
Members:<command>
<name>example</name>
<executable>/var/ossec/etc/shared/example.sh</executable>
<timeout_allowed>no</timeout_allowed>
</command><active-response>
<command>example</command>
<location>local</location>
<rules_group>attack,</rules_group>
</active-response>
Do you reboot Manager after changed ossec.conf of Manager?
Will you can get ossec.conf with <active-responce> <command> and etc/shared/ar.conf here?
[root@centos7endmc19 etc]# pwd
/var/ossec/etc
[root@centos7endmc19 etc]# ll shared/ar.conf
-rw-r-----. 1 root ossec 115 Nov 28 16:57 shared/ar.conf
less ar.conf
restart-ossec0 - restart-ossec.sh - 0
restart-ossec0 - restart-ossec.cmd - 0
firewall-drop0 - firewall-drop.sh - 0
--
You received this message because you are subscribed to the Google
Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to wazuh+un...@googlegroups.com.
To post to this group, send email to wa...@googlegroups.com.
Visit this group at https://groups.google.com/group/wazuh.
To view this discussion on the web visit
https://groups.google.com/d/msgid/wazuh/f2778a0d-97a9-41c2-84d7-683bbb8cbc6e%40googlegroups.com
[1].
For more options, visit https://groups.google.com/d/optout.
Links:
------
[1]
https://groups.google.com/d/msgid/wazuh/f2778a0d-97a9-41c2-84d7-683bbb8cbc6e%40googlegroups.com?utm_medium=email&utm_source=footer
an email to wazuh+unsubscribe@googlegroups.com.
<localfile> <location>Path to active-response.log</location> <log_format>syslog</log_format> </localfile>
Best regards,
Cristobal Lopez.
location: Where the command should be executed. You have four options:
- local: on the agent that generated the event
- server: on the OSSEC server
- defined-agent: on a specific agent (when using this option, you need to set the agent_id to use)
- all: or everywhere.
<!-- Active response -->
<command>
<name>firewall-drop</name>
<executable>firewall-drop.sh</executable>
<expect>srcip</expect>
<timeout_allowed>no</timeout_allowed>
</command>
<active-response>
<command>firewall-drop</command>
<location>local</location>
<rules_group>web,|attack,</rules_group>
</active-response>Hi,
As Dmitriy says, you can only see the log in the agent or manger where
the active response is executed because in ACTIVE-RESPONSE.LOG only
write the active-response scripts when executed.
If you want to monitor the ACTIVE-RESPONSE.LOG of the agents from the
manager, you can add this:
<localfile>
<location>Path to active-response.log</location>
<log_format>syslog</log_format>
</localfile>
Best regards,
Cristobal Lopez.
--
You received this message because you are subscribed to the Google
Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to wazuh+un...@googlegroups.com.
To post to this group, send email to wa...@googlegroups.com.
Visit this group at https://groups.google.com/group/wazuh.
To view this discussion on the web visit
[1].
For more options, visit https://groups.google.com/d/optout.
Links:
------
[1]