OPNsense Forum

English Forums => Development and Code Review => Topic started by: juliocbc on May 21, 2019, 11:32:05 PM

Title: Wazuh Agent integration - call for tests
Post by: juliocbc on May 21, 2019, 11:32:05 PM
Hi!

I've created this small script to put wazuh-agent to work together with OPNsense. It's working well in one of our environments, till now ;-)

Script:
https://github.com/cloudfence/opnsense-wazuh/blob/master/opnsense-ban.sh

The main idea is to ban an offensor IP address that is often is catch by the wazuh's active response feature.

If you are using OPNsense with Wazuh, I invite you to make some tests and let me know if it will work well for you too!

Installation instructions here: https://github.com/cloudfence/opnsense-wazuh/blob/master/README.md

Title: Re: Wazuh Agent integration - call for testing
Post by: mimugmail on May 22, 2019, 05:53:37 AM
Good addition! First I have to build an official port but the wazuh guys doing some unacceptable things in their install.sh
Title: Re: Wazuh Agent integration - call for testing
Post by: juliocbc on May 22, 2019, 01:04:21 PM
Michael,

Great!!! Just waiting your wazuh port.

About the plugin, what about if we work together in it?



Title: Re: Wazuh Agent integration - call for tests
Post by: lfirewall1243 on August 02, 2021, 11:05:06 AM
Any news for a Wazuh Port?
Would be an amazing plugin for OPNsense I think.
Title: Re: Wazuh Agent integration - call for tests
Post by: peterwkc on August 08, 2023, 08:55:23 AM
How to install?
Title: Re: Wazuh Agent integration - call for tests
Post by: franco on August 08, 2023, 02:26:13 PM
We may be working on a Wazuh plugin for the community.  ;)


Cheers,
Franco
Title: Re: Wazuh Agent integration - call for tests
Post by: thwien on August 25, 2023, 10:53:31 AM
Thanks a lot for integrating Wazuh agent as an OPNsense plugin at version 23.7.2. I am using Wazuh as SIEM and installed wazuh-agent via CLI, configured Syslog-ng to produce the old standard log format and it works perfectly. Due to this plugin it will be easier to use Wazuh agent on new installed OPNsense firewalls. This saves time. Keep up your good work.
Title: Re: Wazuh Agent integration - call for tests
Post by: peterwkc on March 17, 2024, 04:39:56 AM
How to install Wazuh plugin?
Title: Re: Wazuh Agent integration - call for tests
Post by: mimugmail on March 18, 2024, 09:26:41 AM
You need to be on a later version and search for the plugin. Which version do you have installed?
Title: Re: Wazuh Agent integration - call for tests
Post by: _tribal_ on March 21, 2024, 09:48:49 PM
Is any sudgestions for this issue?
https://forum.opnsense.org/index.php?topic=39222.msg192088

On latests version all the same  :'(

os-wazuh-agent 1.0_1

OPNsense 24.1.4-amd64
FreeBSD 13.2-RELEASE-p10
OpenSSL 3.0.13
Title: Re: Wazuh Agent integration - call for tests
Post by: mimugmail on March 21, 2024, 10:21:45 PM
See other post
Title: Re: Wazuh Agent integration - call for tests
Post by: squarepantsii on May 17, 2024, 05:23:00 PM
Hi,

First of all, thank you for developing the plugin for OPNsense. It makes the integration of wazuh agent extremely easy.

I am, however, trying to run a older version of Wazuh Agent due to our manager running version 4.6.0.
As my OPNsense is the latest version (24.1.6) on FreeBSD 13.2-RELEASE-p11, I am finding that the installing using Plugin or using 'pkg' from CLI only has wazuh-agent 4.7.4 available.

To remedy this, I am trying to compile from the OPNsense ports

# opnsense-code ports
# cd /usr/ports/security/wazuh-agent
# git restore --source <hash> *
# make
# make install


I am currently stuck - do I run any post-install scripts? For example, add_localfiles.sh or gen_ossec.sh?

Furthermore, am I even on the right track?
Is this entire endeavour going to work?
Most instructions online call for the use of install.sh, but that's not included in the OPNsense port.

Any advice very much welcomed.
Title: Re: Wazuh Agent integration - call for tests
Post by: mimugmail on May 17, 2024, 11:06:02 PM
Why not updating wazuh manager? Peace of cake ... :)
Title: Re: Wazuh Agent integration - call for tests
Post by: squarepantsii on May 18, 2024, 01:48:19 AM
I know, right?
Unfortunately, it's in production and the upgrade would be very disruptive, for now.
Title: Re: Wazuh Agent integration - call for tests
Post by: franco on May 31, 2024, 09:38:16 AM
I think upstream needs better release management... like Zabbix which I personally do not like in approach of too. The same question still arise... when why is release XYZ but mine says ABC what can I do?

As far as version compatibility goes these systems tend to be a bit naive that they can get away without it.


Cheers,
Franco
Title: Re: Wazuh Agent integration - call for tests
Post by: mimugmail on May 31, 2024, 10:50:01 PM
4.6.0 to 4.7.5 on the manager isnt really a big deal, also couple of security updates in there
Title: Re: Wazuh Agent integration - call for tests
Post by: peterwkc on December 06, 2024, 09:40:24 AM
To compare between Wazuh and Security Onion, which is better?

I do have SO mirror using switch.
Title: Re: Wazuh Agent integration - call for tests
Post by: mimugmail on December 06, 2024, 09:44:16 AM
Completely different approach, but SO has a wazuh manager module