Commands

  • static IP Configration
    sudo nano /etc/netplan/50-cloud-init.yaml # Maybe ur file note not like mine 
     
    # Delete all the Data and add 
     
    network:
      version: 2
      ethernets:
        ens18:
          dhcp4: false
          addresses:
            - 192.168.99.24/24
        ens19:
          dhcp4: true
          
     
    sudo netplan try
  • Timeout Extend
    # 1. Create the override directories for all three engines
    mkdir -p /etc/systemd/system/wazuh-indexer.service.d/
    mkdir -p /etc/systemd/system/wazuh-manager.service.d/
    mkdir -p /etc/systemd/system/wazuh-dashboard.service.d/
     
    # 2. Inject the 10-minute timeout rules
    echo -e "[Service]\nTimeoutStartSec=10min" > /etc/systemd/system/wazuh-indexer.service.d/override.conf
    echo -e "[Service]\nTimeoutStartSec=10min" > /etc/systemd/system/wazuh-manager.service.d/override.conf
    echo -e "[Service]\nTimeoutStartSec=10min" > /etc/systemd/system/wazuh-dashboard.service.d/override.conf
     
    # 3. Reload the Linux brain so it learns the new rules
    systemctl daemon-reload
     
    # 4. The CPR Restart Sequence (with built-in breathing room)
    echo "Starting Indexer (Database)..."
    systemctl restart wazuh-indexer
    echo "Waiting 30 seconds for database to open ports..."
    sleep 30
     
    echo "Starting Manager (Brain)..."
    systemctl restart wazuh-manager
    echo "Waiting 15 seconds for brain to connect..."
    sleep 15
     
    echo "Starting Dashboard (GUI)..."
    systemctl restart wazuh-dashboard
    echo "Wazuh stack is fully online! Go check your browser."
  • Sysmon
    Invoke-WebRequest -Uri "https://live.sysinternals.com/Sysmon64.exe" -OutFile "C:\sysmon64.exe"; Invoke-WebRequest -Uri "https://wazuh.com/resources/blog/emulation-of-attack-techniques-and-detection-with-wazuh/sysmonconfig.xml" -OutFile "C:\sysmon-mitre.xml"; C:\sysmon64.exe -accepteula -i C:\sysmon-mitre.xml; C:\sysmon64.exe -c C:\sysmon-mitre.xml
  • Tips & Tricks
    • Automatic
      Set-Service -Name Wazuh -StartupType Automatic

Notes