-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsuri.sh
31 lines (19 loc) · 951 Bytes
/
suri.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
echo Refreshing repositories...
# apt-get update
echo Installing Suricata dependencies...
apt-get -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 make libmagic-dev libjansson-dev libjansson4 pkg-config wget net-tools tcpdump
echo Downloading sourcecode..
wget https://www.openinfosecfoundation.org/download/suricata-4.0.0.tar.gz
echo Unpacking...
tar xvzf suricata-4.0.0.tar.gz
echo changing directory...
alias proj="cd suricata-4.0.0"
echo Building Suricata
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var && make && make install-full
echo adding user and group
adduser suri
## don't need to add group because suricata does this by default
echo Making sure suri owns the logging directory..
mkdir /var/log/suricata
chown -R suri:suri /var/log/suricata/