BSD Ports

security/wazuh-server 4.14.9 FreeBSD

Components for analyze the data received from the agents

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
47b0693c6d
License
GPLv2
Categories
security
Package size
19.5 KiB, 113.3 KiB installed

Description

Wazuh is a free and open source platform used for threat prevention, detection, and response. It is capable of protecting workloads across on-premises, virtualized, containerized, and cloud-based environments.

Wazuh solution consists of an endpoint security agent, deployed to the monitored systems, and a management server, which collects and analyzes data gathered by the agents. Besides, Wazuh has been fully integrated with the Elastic Stack, providing a search engine and data visualization tool that allows users to navigate through their security alerts.

In the other systems

SystemPortVersion
FreeBSDsecurity/wazuh-server4.14.9
GhostBSDsecurity/wazuh-server4.14.7

Install

Binary package:

pkg install wazuh-server

From the ports tree:

cd /usr/ports/security/wazuh-server/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	wazuh-server>0:security/wazuh-server

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest4.14.8----
FreeBSD:14:quarterly4.14.8-n/a--
FreeBSD:15:latest--n/a--
FreeBSD:15:quarterly--n/an/an/a
FreeBSD:16:latest4.14.8-n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Run dependencies 137

The first 100 are listed.

No port depends on this one.

Configuration

Options name: security_wazuh

OptionDefaultDescription
FILEBEATonInstall filebeat component
LOGSTASHonInstall logstash component
WAZUH-MANAGERon
USES
dos2unix
Service scripts
none

Message after installing

Wazuh server components were installed

1) Wazuh server componenets are based on Wazuh manager and Filebeat projects.
   This guide help you to adapt wazuh configuration for it works on FreeBSD
   using apps are part of ports tree. We are using an alternative way to
   configure wazuh server components on FreeBSD. It is necessary configure
   logstash between filebeat and opensearch because FreeBSD does not include
   versions lesser or equal to 7.16.x of Filebeat into ports tree.

2) Do not forget take a look to wazuh-manager post install message to configure
   the wazuh-server component.

   # pkg info -D -x wazuh-manager | less

3) Copy /usr/local/etc/wazuh-server/filebeat.yml to /usr/local/etc/beats/
   directory

4) Copy /usr/local/etc/wazuh-server/logstash.conf and /usr/local/etc/wazuh-server/wazuh-template.json
   files to /usr/local/etc/logstash/ directory

5) You can use my own version of wazuh certificates generator for generate
   root, admin, indexer, server and dashboard certificates used by wazuh
   components.

   https://people.freebsd.org/~acm/ports/wazuh/wazuh-gen-certs.tar.gz

6) Edit filebeat.yml and logstash.yml files and changes options accord to your
   setup. For example host, ssl, filter, etc. Sample files can give you a good
   guide about that.

7) Install logstash-output-opensearch plugin. Fetch it from rubygems site or opensearch github

   # cd /usr/local/logstash/bin
   # sh -c "JAVA_HOME=/usr/local/openjdk21 ./logstash-plugin install logstash-output-opensearch"

   If there are some issues installing this plugin, try installing gem file directly:

   # fetch https://rubygems.org/downloads/logstash-output-opensearch-2.0.3-java.gem -o \
     /tmp/logstash-output-opensearch-2.0.3-java.gem
   # sh -c "JAVA_HOME=/usr/local/openjdk21 ./logstash-plugin install /tmp/logstash-output-opensearch-2.0.3-java.gem"

8) Check if logstash-output-opensearch plugin was installed

   # sh -c "JAVA_HOME=/usr/local/openjdk21 ./logstash-plugin list | grep logstash-output-opensearch"

9) Add Filebeat and Logstash to /etc/rc.conf

   # sysrc filebeat_enable="YES"
   # sysrc logstash_enable="YES"

10) Current version of logstash8 uses openjdk24 by default, but it doesn't work with logstash-output-opensearch.
    Change it to openjdk21 adding the following:

   # sysrc logstash_java_home="/usr/local/openjdk21"

11) Start Filebeat and Logstash services
   
   # service filebeat start
   # service logstash start

12) You can look more useful information at the following link:

    https://documentation.wazuh.com/current/installation-guide/wazuh-server/step-by-step.html

    Take on mind wazuh arquitecture on FreeBSD is configurated not similar like
    you can read at wazuh guide. Some times you could decided configure logstash
    on another host. If it is your case you must adapt some points in this guide.

13) Enjoy it

Files

pkg-plist 13
  • etc/wazuh-server/filebeat.yml
  • etc/wazuh-server/logstash.conf
  • etc/wazuh-server/wazuh-template.json
  • share/beats/filebeat/module/wazuh/_meta/config.yml
  • share/beats/filebeat/module/wazuh/_meta/docs.asciidoc
  • share/beats/filebeat/module/wazuh/_meta/fields.yml
  • share/beats/filebeat/module/wazuh/alerts/config/alerts.yml
  • share/beats/filebeat/module/wazuh/alerts/ingest/pipeline.json
  • share/beats/filebeat/module/wazuh/alerts/manifest.yml
  • share/beats/filebeat/module/wazuh/archives/config/archives.yml
  • share/beats/filebeat/module/wazuh/archives/ingest/pipeline.json
  • share/beats/filebeat/module/wazuh/archives/manifest.yml
  • share/beats/filebeat/module/wazuh/module.yml
distinfo 4
FileSizeSHA256
wazuh-4.14.9/filebeat.yml1120bbcf6fe806a32b505b0848386d71684868be85965bfb91b117dff15c9de7c247
wazuh-4.14.9/logstash-wazuh-4.14.9.conf311046fab0b2cf70a48b23deebd0912606a8500bb5ae64eab08d879591b4af0efb13
wazuh-4.14.9/wazuh-filebeat-0.5.tar.gz18087a8c67c47b22f89ab271b7e35f108f18b2215b7aa411cdd23c9994393070d38d
wazuh-4.14.9/wazuh-template.json84554b2d182f49cc68957849e77fd2d79528fd2273ebaec1106c9661c9e320577a089
Master sites 3
  • LOCAL/acm/wazuh/:config_samples
  • https://packages.wazuh.com/4.x/filebeat/:wazuh_module
  • https://raw.githubusercontent.com/wazuh/wazuh/v4.14.9/extensions/elasticsearch/7.x/:indexer_template

Commit history 4

DateCommitCreditsLog message
47b0693c6d Jose Alonso Cardenas Marquez security/wazuh*: update to 4.14.9
- Update cpython bundle to 3.11.17 - Remove obsolete patch file - Use PYTHON_DISTVERSION for avoid temporarily pkg-plist issues when system python is updated. The best is keep system python and bundle python with the same version. ChangeLog at: https://documentation.wazuh.com/current/release-notes/release-4-14-9.html PR: 299490
8801f12993 Jose Alonso Cardenas Marquez security/wazuh-*: Update to 4.14.8
ChangeLog at: https://documentation.wazuh.com/current/release-notes/release-4-14-8.html
2341115f80 Jose Alonso Cardenas Marquez security/wazuh-*: Update to 4.14.7
ChangeLog: https://documentation.wazuh.com/current/release-notes/release-4-14-7.html
ffbf7ab241 Jose Alonso Cardenas Marquez security/wazuh-*: Update to 4.14.6
ChangeLog at: https://documentation.wazuh.com/current/release-notes/release-4-14-6.html