480 Milestone 8 Putting the Sec in DevSecOps - InaFricke/SEC-480 GitHub Wiki
480 Milestone 8 Putting the Sec in DevSecOps
I spoke with you (Ryan) in class, and you told me it was fine to use the ubuntu box I already created in milestone 7.
AD RoxiBoxi32
Post-deployment configuration: Prepping the server for Ansible
I will use a previously deployed server. Ubuntu-1 to do this lab (with the permission of Ryan).
- Change hostname
set-hostname wazuhh-server
- set static IP and delete all the extras
sudo netplan apply
- Up the RAM Wazuh wants atleast 4
- Restart box
- Create the inventory file
- Create wazuh-install.yaml
- Test ping
- Check if I need to add --ask-become-pass
- troubleshooting playbook errors, checking the log
- problem full disk
- Added a new hard disk because it would not let me increase the original to 40
sudo pvcreate /dev/sdb
sudo vgextend ubuntu-vg /dev/sdb
sudo lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
sudo resize2fs /dev/ubuntu-vg/ubuntu-lv
- Run
ansible-playbook -i inventory-wazuh.yml wazuh-install.yml
Get credentials
- On the wazuhh server
sudo tar -xvf /tmp/wazuh-install-files.tar && cat wazuh-install-files/wazuh-passwords.txt
Username: admin
Password: m*NCaeiXqa9agrT82zPw2vxLS7.gwEuF
Agent Install
- Check Rocky-3 IP
- Update inventory-wazuh.yml
- create wazuh-agent.yml
- Error
FIX: Set DNS on Rocky-3 to 10.0.17.4
snapshot
Logging Proof
- Log in using the identified credentials
-
Agent was not connecting so I had to revert the snapshot and update my script to the correct version number
-
Agent can now be seen on Wazuh!
- Events are showing up