Configuring Iptables/UFW and Auditd with Ansible

preview_player
Показать описание
00:00 - Introduction why you should setup logging
01:50 - Start of configuring UFW, enabling UFW and setting the policy to accept all
04:00 - Showing how to insert IPTABLES Rules into UFW's Config
05:10 - Using the LineInFile Ansible Module to add our IPTABLES Line to Log SYN Packets on the INPUT Chain
05:50 - The IPTABLES Rule that logs all SYN Packets on INPUT
08:20 - Finding out rsyslog is disabled, enabling it
10:20 - Showing that we are now logging when boxes initiates a connection to us
12:20 - Moving our UFW Logging into our main playbook as a role
13:40 - Start of talking about AuditD
14:30 - Start of configuring the Playbook to install/configure AuditD
21:30 - Showing ausearch that allows us to search through Audit Logs
22:40 - Installing Laurel to make auditd logs a bit easier for us to read
23:50 - Creating the _laurel user and needed directories
27:00 - Downloading the Laurel Configuration Files
30:30 - Using get_file to download and install the laurel binary
37:00 - Laurel did not work, troubleshooting the error. Laurel may not have been able to read the config but our read-users config was also bad
40:50 - Showing Laurel working, we now have auditd logs in JSON Format
43:50 - Cleaning up our playbook a little bit with loops and copying it to our main playbook as a role
50:30 - Testing the playbook on a fresh install of parrot
Рекомендации по теме
Комментарии
Автор

Awesome guide Ippsec! Sysadmins and blue-teamers need to learn these tools. During my first years of internship i've seen multiple companys lack in logging and auditing or relying on propertairy software that they dont know how to manage. I hope to see more of this, cheers!

BatreshVic
Автор

Thanks for the awesome little series about ansible! Keep up the hard work :) FYI -C flag with jq will output the colours with less instead of the -C with less as shown in your video

geisterkind
Автор

As always is a pleasure to follow your gigs. One question pls, what are you using on vsCode for the suggestions?

ervinndrukaj
Автор

Hiiii Ippsec love to see your videos can you make a separate video on how to and what to learn to solve the box

patelmeet
Автор

Are you going to continue unlocking these episodes?

Nobodyday