Wazuh-in-Proxmox: Deploying SIEM in Your Homelab

July 29, 2024 12 min read SIEM • Wazuh • Proxmox

Learn how to deploy Wazuh, a comprehensive SIEM and threat detection platform, as a virtual machine on Proxmox VE. This guide covers installation, configuration, and integration with other homelab services.

Prerequisites

Before you begin, ensure the following:

System Update & Dependencies

Start by updating your system and installing necessary tools:

sudo apt update && sudo apt upgrade -y
sudo apt install curl unzip -y

Installation Steps

1. Download the Installation Assistant

Run the following command to download the official Wazuh installation script:

curl -sO https://packages.wazuh.com/4.14/wazuh-install.sh

2. Run the Assisted Installation

The -a flag runs the "all-in-one" installation, which sets up the Wazuh Indexer, the Wazuh Server (Manager), and the Wazuh Dashboard automatically:

sudo bash ./wazuh-install.sh -a

Note: This process usually takes 10–20 minutes to complete. Be patient and let it finish fully.

3. Retrieve Your Credentials

Once the installation finishes, the script will output the results, including your access credentials. If you need to retrieve them later, extract them from the installation files:

sudo tar -O -xvf wazuh-install-files.tar wazuh-install-files/wazuh-passwords.txt

4. Access the Dashboard

Once installation completes:

Wazuh GUI running after initial installation

Wazuh GUI running after initial installation

Pro-Tips for Your Environment

Port Conflicts: Managing CasaOS & Other Services

If you have other services running on your Ubuntu server (like CasaOS), they may conflict with Wazuh's ports. Here's how to resolve port conflicts:

How to Change the CasaOS Port

CasaOS typically runs its web interface on port 80/443. You can change this by modifying the configuration files:

1. Stop the CasaOS Web Service

Stop the service before changing the configuration:

sudo systemctl stop casaos-gateway

2. Edit the Configuration File

The configuration file is typically located at /etc/casaos/gateway.conf. Open it with a text editor:

sudo nano /etc/casaos/gateway.conf

Look for the port or listen parameter and change it from 80 (or 443) to a custom port, such as 8080.

3. Restart the Service

Once saved, restart the gateway service to apply the change:

sudo systemctl start casaos-gateway

4. Access Your Services

Alternative Configuration Paths

If the first path doesn't work, try these alternatives:

After Modifying the Configuration

Once you've saved the file (Press Ctrl + X, then Y, then Enter), restart CasaOS:

sudo systemctl restart casaos

Verify the new port is active:

sudo netstat -tulnp | grep casaos
CasaOS running on selected port

CasaOS successfully running on custom port (will be removed to dedicate resources to Wazuh)

Next Steps

Have questions or run into issues? Reach out via email or connect on LinkedIn.

All Articles Next Lab: Proxmox Installation