#!/bin/bash

clear
sudo apt install snort;
wget https://snort.org/downloads/community/community-rules.tar.gz -O ~/snortrules.tar.gz
sudo tar -xvzf ~/snortrules.tar.gz -C /etc/snort/rules
sudo rm -rf ~/snortrules.tar.gz
mkdir ~/snortlogs
sudo snort -d -b -A fast -c /etc/snort/snort.conf -l ~/snortlogs & sudo snort -d -b -A console -c /etc/snort/snort.conf
