2018年1月31日
安装snort IDS
系统版本:CentOS Linux release 7.3.1611 (Core)
Snort版本:snort-2.9.9.0
Snort下载地址:https://www.snort.org/downloads
安装依赖
yum install -y wget gcc gcc-c++ bison flex pcre-devel
步骤1:下载daq-2.0.6.tar.gz 是snort的依赖项
wget https://www.snort.org/downloads/snort/daq-2.0.6.tar.gz tar zxvf daq-2.0.6.tar.gz cd daq-2.0.6 ./configure && make && make install wget http://www.tcpdump.org/release/libpcap-1.8.1.tar.gz tar zxvf libpcap-1.8.1.tar.gz cd libpcap-1.8.1 ./configure && make && make install
步骤2:下载snort-2.9.9.0.tar.gz
wget https://sourceforge.net/projects/libdnet/files/libdnet/libdnet-1.11/libdnet-1.11.tar.gz/download tar zxvf download cd libdnet-1.11/ ./configure && make && makeinstall wget http://www.zlib.net/zlib-1.2.11.tar.gz tar zxvf zlib-1.2.11.tar.gz cd zlib-1.2.11 ./configure && make && make install wget https://www.snort.org/downloads/snort/snort-2.9.9.0.tar.gz tar zxvf snort-2.9.9.0.tar.gz ./configure && make && make install
到此snort安装好了
使用snort命令启动