Okay i find the way to monitoring the log from sshd daemon.
After that i create decoder and rules to generate alert when there is a ssh connection attempt with failed status.
All that stuff work, so i decided to try to enable active response for that event.
So i configured in the wazuh manager the command and the active response :
<command>
<name>opnsense-fw</name>
<executable>opnsense-fw</executable>
<timeout_allowed>yes</timeout_allowed>
</command>
<active-response>
<command>opnsense-fw</command>
<location>local</location>
<rules_id>570011</rules_id>
<timeout>120</timeout>
</active-response>
When i try to do a lot of ssh connection with the wrong password i saw the alert in wazuh, but i think the active response doesn't work.
Someone can find the problem in my configuration or have the same truble?
PS. The agent configuration on opnsense have the active response enabled