ubuntu1804 build the latest Suricata

suricata

Suricata is a free, open source, mature, fast and powerful cyber threat detection engine.

The Suricata engine is capable of real-time intrusion detection (IDS), inline intrusion prevention (IPS), [network security] (https://cloud.tencent.com/product/ns?from=10680) monitoring (NSM) and offline pcap processing.

The core of many so-called enterprise security protection products is traffic detection based on suricata, which constantly compiles, updates and improves detection rules to improve security capabilities.

Build##

Environment: ubuntu1804

suricata version: 4.1.2

  1. Installation dependencies sudo apt-get install wget build-essential libpcre3-dev libpcre3-dbg automake autoconf libtool libpcap-dev libnet1-dev libyaml-dev zlib1g-dev libcap-ng-dev libjansson-dev pkg-config
  2. Download and unzip the source code wget https://www.openinfosecfoundation.org/download/suricata-4.1.2.tar.gz
  3. tar -xvf suricata-4.1.2.tar.gz
  4. cd suricata-4.1.2/
  5. Compile and install ./configure --sysconfdir=/etc --localstatedir=/var
  6. make
  7. sudo make install

Basic configuration##

  1. Create log directory sudo mkdir /var/log/suricata
  2. sudo mkdir /etc/suricata
  3. Copy the configuration file sudo cp classification.config /etc/suricata
  4. sudo cp reference.config /etc/suricata
  5. sudo cp suricata.yaml /etc/suricata
  6. The configuration has been completed, you can enter sudo suricata -c /etc/suricata/suricata.yaml -i ens33 to start

Exception resolution##

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

  1. sudo vim /etc/ld.so.conf
  2. Add a line /usr/local/lib, save
  3. Execute the ldconfig command to solve

Recommended Posts

ubuntu1804 build the latest Suricata
Install the latest Python 3.6 version on Ubuntu
Ubuntu build etcd
Ubuntu build Seafile
The latest method of installing Mongodb on Ubuntu 16.04
How to install the latest MySQL on Ubuntu 18.04
Ubuntu 18.04 LTS LAMP build
[Linux] Build Samba server (ubuntu16.04)
ubuntu16.04 build vim and pyt
ubuntu 16.04 build pptpd V** server
Build Ubuntu 12.04 cross compilation server
ubuntu unzip the rar file
ubuntu build python development environment
Ubuntu16.04 build GitLab server tutorial
Install the latest version of Thunderbird and exchange plugins under ubuntu
Ubuntu 18.04.1 build Java environment and HelloWorld
Detailed ubuntu14.04 build (migration) hustoj record
The difference between CentOS and Ubuntu
Ubuntu 18.04 disable/enable the touchpad via commands
Deploy the mail system under Ubuntu 19.10
Ubuntu16.04 build php5.6 Web server environment
Overview of the Ubuntu file system
Install the latest OpenCV4.3 under Centos8
Build a file server on ubuntu
The latest Centos7 installation Mysql8 guide
Greg Kroah-Hartman criticizes the Ubuntu distribution
Build Discuz forum based on ubuntu