<\/span><\/h2>\n\n\n\nOnce, the system is updated to its latest versions, the next step is to install the Suricata via package. The Suricata package is already included in Debian 11, so we do not need to import any packages thus to execute only the following command:<\/p>\n\n\n\n
sudo apt install suricata -y<\/pre>\n\n\n\nOnce, the installation is completed, start the service with the following command:<\/p>\n\n\n\n
sudo systemctl start suricata<\/pre>\n\n\n\nTo enable the service to automatically, start on system reboot execute the command:<\/p>\n\n\n\n
sudo systemctl enable suricata<\/pre>\n\n\n\nTo check the status of the service, and verify that everything is ok, execute the command below:<\/p>\n\n\n\n
sudo systemctl status suricata<\/pre>\n\n\n\nYou should receive the output as described below:<\/p>\n\n\n\n
root@vps:~# sudo systemctl status suricata\n\u25cf suricata.service - Suricata IDS\/IDP daemon\n Loaded: loaded (\/lib\/systemd\/system\/suricata.service; enabled; vendor preset: enabled)\n Active: active (running) since Wed 2021-12-22 09:01:49 EST; 3min 34s ago\n Docs: man:suricata(8)\n man:suricatasc(8)\n https:\/\/suricata-ids.org\/docs\/\n Main PID: 40712 (Suricata-Main)\n Tasks: 10 (limit: 4678)\n Memory: 62.6M\n CPU: 1min 3.410s\n CGroup: \/system.slice\/suricata.service\n \u2514\u250040712 \/usr\/bin\/suricata -D --af-packet -c \/etc\/suricata\/suricata.yaml --pidfile \/run\/suricata.pid\n\nDec 22 09:01:49 test.vps systemd[1]: Starting Suricata IDS\/IDP daemon...\nDec 22 09:01:49 test.vps suricata[40711]: 22\/12\/2021 -- 09:01:49 - - This is Suricata version 6.0.1 RELEASE running in SYSTEM mode\nDec 22 09:01:49 test.vps systemd[1]: Started Suricata IDS\/IDP daemon.\n<\/pre>\n\n\n\nBy default, the Suricata installation is configured only to log the traffic and not prevent any dropping. This mode is called Suricata IDS mode, and if you want to change this according to the type of your traffic you will need to use the Suricata IPS mode. The changes for customizing the Suricata can be done by opening the “\/etc\/suricata\/suricata.yaml<\/b>” file with your favorite editor.<\/p>\n\n\n\n
In the next few headings, we will explain what changes should be made after the installation of Suricata and its default configuration. In other words, we will customize the default Suricata installation.<\/p>\n\n\n\n