1.安装依赖包

    1. yum -y install pcre* libdnet* libpcap* flex bison policycoreutils-python gcc gcc-c++ libxml2 openssl-devel

    2.下载安装包

    1. wget http://luajit.org/download/LuaJIT-2.0.5.tar.gz wget https://www.snort.org/downloads/snort/daq-2.0.7.tar.gz wget https://www.snort.org/downloads/snort/snort-2.9.17.tar.gz

    3.解压

    1. tar -zxf LuaJIT-2.0.5.tar.gz && tar -zxf daq-2.0.7.tar.gz && tar -zxf snort-2.9.17.tar.gz

    4.编译并安装

    1. cd /root/LuaJIT-2.0.5 make && make install cd /root/daq-2.0.7 ./configure make && make install cd /root/snort-2.9.17 ./configure --enable-sourcefire make && make install

    5.入侵检测测试

    1. snort