1:部署安装snort
yum -y install wget
2: 基本依赖环境
yum -y install gcc flex bison zlib zlib-devel libpcap libpcap-devel pcre pcre-devel libdnet libdnet-devel tcpdump
yum -y install epel-release nghttp2
yum -y install glibc-headers gcc-c++
下载软件
wget https://www.snort.org/downloads/snort/snort-2.9.15.tar.gz
wget https://www.snort.org/downloads/snort/daq-2.0.6.tar.gz
wget http://www.tcpdump.org/release/libpcap-1.9.1.tar.gz
tar -xf libpcap-1.9.1.tar.gz
cd libpcap-1.9.1/
./configure && make && make install
wget http://prdownloads.sourceforge.net/libdnet/libdnet-1.11.tar.gz
cd libdnet-1.11/
./configure && make && make install
tar -xf daq-2.0.6.tar.gz
cd daq-2.0.6/
./configure && make && make install
wget http://luajit.org/download/LuaJIT-2.0.5.tar.gz
yum install openssl openssl-devel
tar -xf LuaJIT-2.0.5.tar.gz
cd LuaJIT-2.0.5/src/ && make
cd ..
make install
tar -xf snort-2.9.15.tar.gz
cd snort-2.9.15/
./configure --enable-sourcefire
make && make install
检测snort是否安装成功
Snort -V
参考:https://blog.csdn.net/xiaopan233/article/details/83478356
原文地址:https://www.cnblogs.com/will--1213/p/12048294.html