[英]Snort configuration dead end
I'm in a dead end at the configuration of snort.我在 snort 的配置上陷入了死胡同。
In theory a simple problem.理论上一个简单的问题。
I created a test rule to check if snort runs properly.我创建了一个测试规则来检查 snort 是否正常运行。
Location:\etc\snort\rules\local.rules位置:\etc\snort\rules\local.rules
Content:内容:
alert icmp any any -> $HOME_NET any (msg:"ICMP on fire"; sid:10000001; rev:001;)
Then I ran on terminal:然后我在终端上运行:
sudo snort -T -i enp0s3 -c /etc/snort/snort.conf
Message I receive at the end of the initialization:我在初始化结束时收到的消息:
"Snort successfully validated the configuration!"
"Snort exiting"
But scrolling up I'm seeing:但向上滚动我看到:
Initializing rule chains...
0 Snort rules read
0 detection rules
0 decoder rules
0 preprocessor rules
0 Option Chains linked into 0 Chain Headers
No rules at all!一点规则都没有!
location is correct in conf file under conf文件中的位置正确
/etc/snort/snort.conf /etc/snort/snort.conf
var RULE_PATH /etc/snort/rules
Snort 2.9.17 Build 199 Ubuntu 20.04打鼾 2.9.17 构建 199 Ubuntu 20.04
Any ideas?Thnnks in advance!任何想法?Thnnks提前!
I would recommend supplying the rule path when you execute Snort using the "--rule-path" flag.我建议您在使用“--rule-path”标志执行 Snort 时提供规则路径。
The --rule-path
flag is not available and not recognized. --rule-path
标志不可用且无法识别。 As far I understand this variable is just that, a variable that's not used anywhere in the configuration file.据我了解,这个变量就是这样,一个在配置文件中的任何地方都没有使用的变量。 The only way/workaround that I found was include the rule files for ex.我发现的唯一方法/解决方法是包含 ex 的规则文件。
In the snort.conf appending this.在附加此的 snort.conf 中。
.
.
.
.
include c:\local.rules
Besides that, someone found a way to match content in answer/response?除此之外,有人找到了一种方法来匹配答案/响应中的内容? I mean, let suppose that I want to check if the server has answer with a known content, for ex: success
.我的意思是,假设我想检查服务器是否有已知内容的答案,例如: success
。 I've tried with bidirectional operator <>
and flow:to_client
but nothing has worked.我尝试过使用双向运算符<>
和flow:to_client
但没有任何效果。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.