Hello,
I just installed Suricata on Ubuntu 18.04 by the command:
apt-get install suricata
Then i got the ERROR:
26/1/2021 – 08:25:02 - - [ERRCODE: SC_ERR_NO_RULES(42)] - No rule files match the pattern /var/lib/suricata/rules/suricata.rules
I don’t have directory /var/lib/suricata/rules/suricata.rules. If this directory existed, I would change the rights to 755. What should I do in this case?
What it says is that you are missing the suricata.rules file. You will have to have that file or any other in that directory and add it to suricata.yaml.
what is not is suricata.rules. I have the rules in /etc/suricata/rules (if the rules directory is not there, create it), and there you should have the rules.
In suricata.yaml you will have to add the rules in this way: