Snort初始化配置检查失败:规则文件路径错误及注册表键创建失败问题求助
Snort初始化配置检查失败:规则文件路径错误及注册表键创建失败问题求助
各位好,我最近在初始化Snort的时候碰上个棘手的问题,执行下面这条命令做配置检查的时候直接中断报错了:
snort -T -c c:\snort\etc\snort.conf
报错信息如下:
ERROR: c:\snort\etc\c:\Snort\rules\preproc_rules(0) Unable to open rules file "c:\snort\etc\c:\Snort\rules\preproc_rules": Invalid argument. Fatal Error, Quitting.. Could not create the registry key.
我把snort.conf里的相关配置片段贴出来,麻烦帮忙看看哪里出问题了:
#-------------------------------------------------- # VRT Rule Packages Snort.conf # # For more information visit us at: # http://www.snort.org Snort Website # http://vrt-blog.snort.org/ Sourcefire VRT Blog # # Mailing list Contact: snort-users@lists.snort.org # False Positive reports: fp@sourcefire.com # Snort bugs: bugs@snort.org # # Compatible with Snort Versions: # VERSIONS : 2.9.20 # # Snort build options: # OPTIONS : --enable-gre --enable-mpls --enable-targetbased --enable-ppm --enable-perfprofiling --enable-zlib --enable-active-response ...
从错误信息能看出来,规则文件的路径明显有问题,变成了重复拼接的c:\snort\etc\c:\Snort\rules\preproc_rules,我猜是配置里的路径参数写错导致的,但翻来覆去没找到具体位置;另外还有“无法创建注册表键”的错误,不知道是不是前面的路径问题引发的连锁反应,有没有大佬能帮忙分析下这两个问题的解决办法呀?
备注:内容来源于stack exchange,提问作者user1916853




