← Back

Wazuh Agent Deployment

Deploying a Ubuntu-based Wazuh agent VM in the isolated lab network and registering it with the manager.

1. Create and Configure Agent VM

ip a
ping 10.10.10.10

2. Install Wazuh Agent

scp wazuh-agent-4.x.deb agent01:/home/agent01/
sudo dpkg -i wazuh-agent-4.x.deb
systemctl status wazuh-agent

3. Configure Agent → Manager Communication

sudo nano /var/ossec/etc/ossec.conf
<client>
  <server>
    <address>10.10.10.1</address>
    <port>1514</port>
    <protocol>tcp</protocol>
  </server>
</client>
sudo systemctl restart wazuh-agent

4. Register the Agent on the Manager

sudo /var/ossec/bin/manage_agents
sudo systemctl restart wazuh-agent

5. Verify Connection

sudo /var/ossec/bin/agent_control -lc

Expected output:

ID: 001, Name: agent01, IP: 10.10.10.10, Status: Active

Dashboard: Agents → Manage agents → confirms agent01 active.

6. Notes

End result: Agent agent01 deployed and reporting to Wazuh manager 192.168.2.155.

Next Up