This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Author: Josh Stroschein | |
| # Date: 22 Nov 2020 | |
| # Reference: https://suricata-update.readthedocs.io/en/latest/quickstart.html#directories-and-permissions | |
| if (($EUID != 0)); then | |
| echo -e "[!] Please run this script as root or with \"sudo\"\n" | |
| exit 1 | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ###################### | |
| # Suricata (IDS + IPS) | |
| ###################### | |
| # Update and Upgrade | |
| sudo update -y && sudo upgrade -y | |
| # Requirements | |
| sudo apt -y install rustc cargo | |
| sudo apt -y install libpcre3 libpcre3-dbg libpcre3-dev build-essential autoconf automake libtool libpcap-dev libnet1-dev libyaml-0-2 libyaml-dev zlib1g zlib1g-dev libcap-ng-dev libcap-ng0 libnspr4-dev libnss3-dev liblz4-dev |