Centos7安装Suricata6.0.0记录+排坑(rust版本)

Suricata介绍

Suricata(入侵检测系统)是一款高性能的网络IDS、IPS和网络安全监控引擎。
Suricata是由所谓的线程(threads)、线程模块 (thread-modules)和队列(queues)组成。Suricata是一个多线程的程序,因此在同一时刻会有多个线程在工作。线程模块是依据 功能来划分的,比如一个模块用于解析数据包,另一个模块用于检测数据包等。每个数据包可能会有多个不同的线程进行处理,队列就是用于将数据包从一个线程传 递到另一个线程。与此同时,一个线程可以拥有多个线程模块,但是在某一时刻只有一个模块在运行。
Suricata的运行方式就是上面介绍的线程(threads)、线程模块(thread-modules)和队列(queues)三种元素的不 同组合方式。

官网地址(开源):http://suricata-ids.org/

Suricata默认的运行模式是IDS。

安装

#下载安装包
wget https://www.openinfosecfoundation.org/download/suricata-6.0.0.tar.gz
tar -xvf suricata-6.0.0.tar.gz
cd  suricata-6.0.0

排坑

  1. 坑一:(报错忘记截图,大致意思如下图,需要降低rust版本)
    在这里插入图片描述

rust 默认1.58.0报错解决方案:(查了很多资料,选择降低rust版本)
https://forum.suricata.io/t/latest-suricata-6-0-2-with-rustc-has-trouble-installing-with-error-could-not-compile-lexical-core/1461/9

yum remove cargo_x86
curl https://sh.rustup.rs -sSf | sh

在这里插入图片描述
输入默认项1,完成余下的安装
在这里插入图片描述

source $HOME/.cargo/env
rustup install 1.52.0
export RUSTUP_TOOLCHAIN=1.52.0
#编译安装:
./configure --sysconfdir=/etc --localstatedir=/var
# --sysconfdir --localstatedir参数参考地址:[https://suricata.readthedocs.io/en/latest/install.html](https://suricata.readthedocs.io/en/latest/install.html)
make
sudo make install
  1. 坑二:
    报错信息如下:

suricata: error while loading shared libraries: libhtp.so.2: cannot open shared object file: No such file or directory

解决方案:

sudo vim /etc/ld.so.conf
加入一行 /usr/local/lib,保存
执行ldconfig命令 即可解决

End

以上完成Suricata 6.0.0版本的安装,运行如下:

在这里插入图片描述

  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值