Skip to content

Instantly share code, notes, and snippets.

@ox0xo
Last active August 1, 2021 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ox0xo/40e28d342796473887c2ddf19a421644 to your computer and use it in GitHub Desktop.
Save ox0xo/40e28d342796473887c2ddf19a421644 to your computer and use it in GitHub Desktop.
Install script for Suricata
#!/bin/sh
apt install rustc cargo make libpcre3 libpcre3-dbg libpcre3-dev build-essential autoconf automake libtool libpcap-dev libnet1-dev -y
apt install libyaml-0-2 libyaml-dev zlib1g zlib1g-dev libcap-ng-dev libcap-ng0 make libmagic-dev libjansson-dev libjansson4 pkg-config liblua5.3-dev -y
apt install libnetfilter-queue-dev libnetfilter-queue1 libnfnetlink-dev libnfnetlink0 -y
apt install python3-pip -y
pip3 install --upgrade suricata-update
ln -s /usr/local/bin/suricata-update /usr/bin/suricata-update
mkdir /downloads
cd /downloads
wget https://www.openinfosecfoundation.org/download/suricata-6.0.3.tar.gz
tar -xvzf suricata-6.0.3.tar.gz
cd suricata-6.0.3
./configure --enable-nfqueue --enable-lua --prefix=/usr --sysconfdir=/etc --localstatedir=/var
make
make install-full
make install-rules
suricata-update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment