← Back In the print window choose “Save as PDF” as the printer.

Suricata cheatsheet

A network guard that raises an alarm on suspicious traffic

UnixDroid

How it works

  1. Watch — Suricata reads traffic from a network interface.
  2. Compare — Packets are checked against detection rules.
  3. Alert — Matches are written to log files.
  4. Act — Defenders investigate, or IPS mode blocks.

First steps

suricata --build-info
Check the build
sudo suricata-update
Download the latest rules
sudo suricata -T -c /etc/suricata/suricata.yaml
Test your configuration
sudo tail -f /var/log/suricata/fast.log
Watch alerts live
Monitor only networks you are responsible for, and tune rules so real alerts are not lost in noise. Practise only on your own computer, your own network or a lab that gives you permission. Using security tools on systems that are not yours can be a crime (in India under the IT Act).