๐ŸฆInstalling and Configuring Network Based IDS In Ubuntu: Suricata

Install Suricata In Ubuntu

$ sudo apt install suricata

Modify The Configuration File

  • In the Line no 15 Change the HOME_NET IP address subnet to your machines IP subnet

  • In the Line no 580 change the Interface from eth0 to your local interface name (In my case it is enp0s3)

  • In the Line no 661 change the Interface from eth0 to your local interface name (In my case it is enp0s3)

  • In the Line no 129 change the community-id from false to true

  • You can add custom rules after Line no 1875

Update Suricata

List Suricata Rules

Download Rulesets

Enable A Source

malsilo/win-malware is the name of the source. You can choose any name after running sudo suricata-update list-sources

Update suricata after enabling a new source.

Test The Suricata Configuration File

Run Suricata

View The Logs

Test If The Data Is Logged Or Not?

Make a Curl Request

View The Logs

Suricata Custom Rules

Create a Custom Rule

Add the Below Line In local.rules file

Add the local.rules file name/path in suricata.yaml file

  • Add the below text after the Line no 1875 in suricata.yaml file

  • Save the file and exit

Install jq

View the Latest Logs

Last updated

Was this helpful?