centos7snort安装部署
时间: 2023-10-22 20:09:11 浏览: 155
centos7部署snort步骤
5星 · 资源好评率100%
安装部署Snort需要以下步骤:
1. 安装依赖库和工具
```
yum install -y gcc flex bison zlib libpcap pcre libdnet tcpdump
```
2. 下载和安装Snort
```
wget https://www.snort.org/downloads/snort/snort-2.9.17.tar.gz
tar -zxvf snort-2.9.17.tar.gz
cd snort-2.9.17
./configure --enable-sourcefire && make && make install
```
3. 配置Snort
```
mkdir /etc/snort
mkdir /etc/snort/rules
mkdir /var/log/snort
touch /etc/snort/rules/white_list.rules
touch /etc/snort/rules/black_list.rules
cp /usr/local/src/snort-2.9.17/etc/*.conf* /etc/snort
```
4. 测试Snort
```
snort -T -c /etc/snort/snort.conf
```
5. 启动Snort
```
snort -A console -q -u snort -g snort -c /etc/snort/snort.conf -i eth0
```
阅读全文