In this blog post I will be covering something I’ve covered
in a previous blog post, but I’ve decided to change my home lab and put my
Wazuh SIEM on a standalone rocky linux, there are several reasons I chose to do
this,
- Performance & Scalability: The OVA VM is a pre-built virtual machine that may not be optimized for high availability or scalability. A dedicated instance on Rocky Linux allows for better resource allocation and tuning.
- Customization & Flexibility: The OVA VM comes with predefined configurations. Running Wazuh on Rocky Linux gives you full control over system settings, security policies, and software updates.
- Compatibility & Stability: Rocky Linux is a stable, enterprise-grade OS, and Wazuh has been tested for compatibility with newer versions like Rocky Linux 9.3. This ensures long-term support and reliability.
- Security & Isolation: A dedicated instance provides better security isolation compared to a shared virtualized environment. You can implement stricter access controls and security hardening.
- Better Resource Management: Running Wazuh on a dedicated Rocky Linux instance allows for fine-tuned resource allocation, avoiding potential performance bottlenecks that may arise in a virtualized environment.
To achieve this, I decided to use the assisted installation as
it is an all-in-one solution and installs everything you need to run Wazuh.
Installation steps
Firstly, I downloaded the image file for rocky linux from
the official website (https://rockylinux.org/)
I then created a VM
in virtual box, I chose 70Gb hard drive, with 8Gb RAM and 3 processors.
The picture above shows the VirtualBox setup screen for my
rocky linux Wazuh virtual machine
I installed the rocky image and set up the administrator
passwords and the user accounts.
The picture above shows the start of the installation
process the next screen is where you would set the admin and user accounts and
passwords up.
One the machine was booted I followed the instructions on
the Wazuh website for an assisted installation (https://documentation.wazuh.com/current/installation-guide/wazuh-server/installation-assistant.html)
The picture above shows the Wazuh assisted installation
website I just copied and pasted these commands in to the terminal on my rocky
linux VM.
Using the command line prompts in the installation guide, it
does take some time so be patient while its all installing, it creates all the
certificates and the login details for the web dashboard are shown at the end
of the installation.
The picture above shows the command line in rocky linux and
in particular the completed installation of Wazuh with the username and
password being generated as part of the installation process.
Another point here is
its worth noting these down as I forgot and had to change it although its not a
big job to change the password it’s just a hassle to go through if you don’t
need to.
Once the installation was complete, I logged in to the web
dashboard and booted up my endpoints (linux mint, fedora linux, elementary
linux and zorin linux)
zorin linux required no set up and was seen by the dashboard
straight away, the other endpoints had a few issues with IP address
discrepancies in the configuration file. I decided to start from scratch and
followed the prompts on the web dashboard for adding another endpoint and it
generates the code to copy and paste into the command line and writes the .conf
file at the same time. It only took a few minutes to add the other three
endpoints using this method.
The picture above shows the web dashboard where I clicked on
the deploy new agent button and followed the onscreen prompts for installing my
linux endpoints on the Wazuh dashboard.
Another issue I had here was that I couldn’t copy and paste
between my VM’s there is a setting in VirtualBox that allows this but I think
there is something in the linux clipboard that possibly needs setting up, but a
quick fix was to log in to the web dashboard on each machine and generate the
code required for that specific machine.
Comments
Post a Comment