Hi! I am using OpenWrt version 22.03.5 on x86_64. I am trying to install Snort3, I followed the steps on the official guide for this, I did the IDS setup, and then altered it to act as an IPS based on the guide.
When validating these config files with this command: snort -c /etc/snort/snort.lua --daq-dir /usr/lib/daq -T
ERROR: /etc/snort-rules/rules/snort3-community.rules:1 unable to open rules file '/etc/snort-rules/rules/snort3-community.rules': No such file or directory
Oh, and also, I set up all the rules based on the "rule script" that was provided by the guide.
I am stuck on these 2 errors with google not helping at all.
Can you please help me?
Thank you very much!
Thank you! Moving the action override actually helped!
I don't know why it's in the daq section on the main guide.
Also, I am just using a different path for rules, I solved it by removing the community rules from the snort.lua since the file snort3-community.rules is no longer in the ruleset downloaded from snort.
Note that if you use Snort inline with afpacket no traffic can drop only reject works halfway with Tcp thereby the "dangerous" packets are let through but the connection is terminated by the reset that Snort sends. At the moment Snort only works with the Nfq method right.