BSD Ports

security/wazuh-indexer 4.14.9 FreeBSD

A highly scalable, full-text search and analytics engine

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
47b0693c6d
License
GPLv2
Categories
security
Package size
9.5 KiB, 20.1 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-indexer4.14.9
DragonFlysecurity/wazuh-indexer4.11.1
HardenedBSDsecurity/wazuh-indexer4.14.8
GhostBSDsecurity/wazuh-indexer4.14.7

Install

Binary package:

pkg install wazuh-indexer

From the ports tree:

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

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

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

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.84.14.8---
FreeBSD:14:quarterly4.14.84.14.8n/a--
FreeBSD:15:latest4.14.84.14.8n/a--
FreeBSD:15:quarterly4.14.84.14.8n/an/an/a
FreeBSD:16:latest4.14.84.14.8n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Runtime 1

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

Run dependencies 56

No port depends on this one.

Configuration

No options to configure.

Service scripts
none

Message after installing

Wazuh indexer components were installed

1) Wazuh indexer is based on opensearch project. This guide help you for adapt
   wazuh configuration for it works on FreeBSD using apps are part of ports
   tree.

2) Copy /usr/local/etc/wazuh-indexer/wazuh-indexer.yml to /usr/local/etc/opensearch/opensearch.yml

3) Edit /usr/local/etc/opensearch/opensearch.yml and changes options accord to your
   setup. For example host, ssl, nodes options, etc. On this guide we will use
   like host 10.0.0.10

4) If you want use a simple way to generate wazuh infrastructure certificates
   you can use a simplified version of certificates generator script located at:

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

5) Wazuh needs opensearch-security features. Rename or copy samples files
   into /usr/local/etc/opensearch/opensearch-security

   # cd /usr/local/etc/opensearch/opensearch-security
   # sh -c 'for i in $(ls *.sample ) ; do cp -p ${i} $(echo ${i} | sed "s|.sample||g") ; done'

6) You can define a custom admin password modifying internal_users.yml file into 
   /usr/local/etc/opensearch/opensearch-security/

   admin:
     hash: "$2a$12$VcCDgh2NDk07JGN0rjGbM.Ad41qVR/YFJcgHp0UGns5JDymv..TOG"

   Hash password can be generated using opensearch-security hash script tool

   # cd /usr/local/lib/opensearch/plugins/opensearch-security/tools/
   # sh -c "OPENSEARCH_JAVA_HOME=/usr/local/openjdk21 ./hash.sh -p adminpass"
   $2y$12$XaEXmp4kGQpd6t8kNH03quyvpHDQZh.nywLLp9.b0NF2DxGl8FpJK

7) Add OpenSearch to /etc/rc.conf

   # sysrc opensearch_enable="YES"

8) Start OpenSearch

  # service opensearch start

9) Finally you must initialize opensearch cluster

  # cd /usr/local/lib/opensearch/plugins/opensearch-security/tools/
  # sh -c "OPENSEARCH_JAVA_HOME=/usr/local/openjdk21 ./securityadmin.sh \
    -cd /usr/local/etc/opensearch/opensearch-security/ -cacert /usr/local/etc/opensearch/certs/root-ca.pem \
    -cert /usr/local/etc/opensearch/certs/admin.pem -key /usr/local/etc/opensearch/certs/admin-key.pem -h 10.0.0.10 -p 9200 -icl -nhnv"

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

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

    Take on mind wazuh arquitecture on FreeBSD is configurated not similar like
    you can read at wazuh guide

11) Testing your server installation

   # curl -k -u admin:adminpass https://10.0.0.10:9200
   # curl -k -u admin:adminpass https://10.0.0.10:9200/_cat/nodes?v

12) Enjoy it

Files

distinfo 1
FileSizeSHA256
wazuh-4.14.9/wazuh-4.14.9-indexer.yml224426aa0922d79ba74b02b8d1f239ad75b65886d95460e67b45fe998cdf2151da3b
Master sites 1
  • LOCAL/acm/wazuh/

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