Install and configure Snort in IDS mode to detect suspicious network activity.
sudo apt install snort -y
cat /etc/snort/snort.conf | grep -v '^#' | grep -v '^$' | head -20
echo 'alert icmp any any -> any any (msg:"ICMP Ping Detected"; sid:1000001; rev:1;)' | sudo tee /etc/snort/rules/local.rules
sudo snort -T -c /etc/snort/snort.conf
sudo snort -A console -q -c /etc/snort/snort.conf -i eth0
How would you write a rule to detect SSH brute-force attempts?