How To Install suricata on Ubuntu 18.04

In this tutorial we learn how to install suricata on Ubuntu 18.04. suricata is Next Generation Intrusion Detection and Prevention Tool

Introduction

In this tutorial we learn how to install suricata on Ubuntu 18.04.

What is suricata

suricata is:

Suricata is a network Intrusion Detection System (IDS). It is based on rules (and is fully compatible with snort rules) to detect a variety of attacks / probes by searching packet content.

It can also be used as Intrusion Prevention System (IPS), and as higher layer firewall.

This new Engine supports Multi-Threading, Automatic Protocol Detection (IP, TCP, UDP, ICMP, HTTP, TLS, FTP and SMB), Gzip Decompression, Fast IP Matching and coming soon hardware acceleration on CUDA and OpenCL GPU cards.

This version has inline (NFQUEUE) support enabled.

There are three methods to install suricata on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install suricata Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install suricata using apt-get by running the following command:

sudo apt-get -y install suricata

Install suricata Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install suricata using apt by running the following command:

sudo apt -y install suricata

Install suricata Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install suricata using aptitude by running the following command:

sudo aptitude -y install suricata

How To Uninstall suricata on Ubuntu 18.04

To uninstall only the suricata package we can use the following command:

sudo apt-get remove suricata

Uninstall suricata And Its Dependencies

To uninstall suricata and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove suricata

Remove suricata Configurations and Data

To remove suricata configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge suricata

Remove suricata configuration, data, and all of its dependencies

We can use the following command to remove suricata configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge suricata

References

Summary

In this tutorial we learn how to install suricata package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.