Networking and Security
Step-by-Step Guide to Installing Wazuh on Ubuntu Server 24.04
By Amjid Ali · · Updated · 2 min read

Wazuh is a powerful, open-source security platform for monitoring and threat detection. In this guide, we will walk you through the installation process of Wazuh on Ubuntu Server 24.04.
1. Add the Wazuh Repository
To begin, add the Wazuh repository to your Ubuntu server. This requires importing the GPG key and configuring the repository.
sudo apt update
sudo apt install gnupg apt-transport-https
curl -s https://packages.wazuh.com/key/GPG-KEY-WAZUH | gpg --dearmor | sudo tee /usr/share/keyrings/wazuh.gpg > /dev/null
echo "deb [signed-by=/usr/share/keyrings/wazuh.gpg] https://packages.wazuh.com/4.x/apt/ stable main" | sudo tee /etc/apt/sources.list.d/wazuh.list
2. Install the Wazuh Manager
The Wazuh Manager is the central component that analyzes data and generates alerts.
- Update your package list and install the Wazuh Manager:
sudo apt update sudo apt install wazuh-manager - Enable and start the Wazuh Manager service:
sudo systemctl enable --now wazuh-manager
3. Install the Wazuh Indexer
The Wazuh Indexer is essential for storing and indexing alerts generated by the Manager.
- Install the Indexer:
sudo apt install wazuh-indexer - Enable and start the Wazuh Indexer service:
sudo systemctl enable --now wazuh-indexer
4. Install the Wazuh Dashboard
The Dashboard provides a web-based interface for monitoring and managing Wazuh alerts.
- Install the Dashboard:
sudo apt install wazuh-dashboard - Enable and start the Dashboard service:
sudo systemctl enable --now wazuh-dashboard
5. Configure SSL/TLS Certificates
To secure communication between Wazuh components, configure SSL/TLS certificates.
- Download the Wazuh Certificates Tool and Configuration File:
wget https://packages.wazuh.com/4.x/wazuh-certs-tool.sh wget https://packages.wazuh.com/4.x/config.yml - Edit the
config.ymlfile to specify the IP addresses and names of your Wazuh nodes. - Generate the certificates:
bash ./wazuh-certs-tool.sh -A
Generated certificates will be stored in the wazuh-certificates directory.
6. Configure Filebeat
Filebeat is used to forward logs and events to the Wazuh Indexer.
- Install Filebeat:
sudo apt install filebeat - Download the preconfigured Filebeat configuration file:
curl -so /etc/filebeat/filebeat.yml https://packages.wazuh.com/4.x/tpl/wazuh/filebeat/filebeat.yml - Edit the
/etc/filebeat/filebeat.ymlfile to update thehostsfield with your Wazuh Indexer address. - Enable and start Filebeat:
sudo systemctl enable --now filebeat
7. Access the Wazuh Dashboard
Once the installation is complete, you can access the Wazuh Dashboard.
- Open your web browser and navigate to:
https://<server-ip> - Use the default credentials (
adminfor both username and password) to log in.
Keep reading
Networking and SecurityThe Ultimate Guide to pfBlockerNG Recommended Feeds in 2025Discover the best pfBlockerNG feeds for 2025, including ad blocking, DNSBL, and recommended lists for enhanced network security and performance. Perfect for pfSense setups! · 3 min read
Networking and SecurityHow to Secure Your External Drive with Password ProtectionLearn how to enhance your data security with step-by-step instructions on password protecting your external drive using BitLocker encryption. Whether you're on Windows 11 Professional or moving data across platforms, this guide ensures your information stays secure. Subscribe now for more tech tutorials and stay informed! · 1 min read
Networking and SecurityPi-hole DNS Server Installation Guide on Raspian and UbuntuPi-Hole is a Network Wide protection system that helps to block the ads and improves network performance. You can see the statistics using the web... · 2 min read