W3Cschool
恭喜您成為首批注冊用戶
獲得88經(jīng)驗值獎勵
suricata 官方安裝文檔 https://redmine.openinfosecfoundation.org/projects/suricata/wiki/Suricata_Installation
本人選用 Debian 操作系統(tǒng) 官方安裝文檔 https://redmine.openinfosecfoundation.org/projects/suricata/wiki/Debian_Installation
1. Pre-installation requirements
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 libmagic-dev libcap-ng-dev \
libjansson-dev pkg-config liblua5.1-dev
2. IPS
By default, Suricata works as an IDS. If you want to use it as a IDS and IPS program, enter:
apt-get -y install libnetfilter-queue-dev
To download and build Suricata, enter the following:
wget http://www.openinfosecfoundation.org/download/suricata-4.0.3.tar.gz tar -xvzf suricata-4.0.3.tar.gz
cd suricata-4.0.3
4. Compile and install the program
If you plan to build Suricata with IPS capabilities, enter:
./configure --enable-nfqueue --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-lua
make
make install-full
ldconfig
5. Start suricata
suricata -i eth0 (默認(rèn)加載/etc/suricata/suricata.yaml配置)
自此 suricata 已安裝完畢
PS: 按照官網(wǎng)的方法進(jìn)行安裝后,不支持執(zhí)行 lua 腳本。所以在上面的命令中追加了 apt-get install -y liblua5.1-dev 及 ./configure --enable-lua
PS: suricata 不支持 lua 和 luajit 同時使用,因此 ./configure --enable-lua --enable-luajit 會報錯
Copyright©2021 w3cschool編程獅|閩ICP備15016281號-3|閩公網(wǎng)安備35020302033924號
違法和不良信息舉報電話:173-0602-2364|舉報郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號
聯(lián)系方式:
更多建議: