1. 程式人生 > >Suricata 規則的classtype作用,如何自定義classtype

Suricata 規則的classtype作用,如何自定義classtype

0x01


1.classtype

classtype用於對規則進行分類及匹配的優先順序進行制定。優先順序的作用是suricata在進行規則匹配的時候,如果一條報文同時匹配兩條告警,那麼優先匹配優先順序高的規則。

2.priority

具體每條規則的優先順序,如果沒有該項,規則會繼承他的classtype優先順序。

0x02


1.新增新的classtype

可以在classification.conf檔案中新增,新增格式為

config classification:短型別名,簡短描述,匹配優先順序

0x03


參考:

https://blog.csdn.net/wuyangbotianshi/article/details/44775181

http://blog.51cto.com/13646851/2093345

https://zhuanlan.zhihu.com/p/37173608

https://xiaix.me/suricata-gui-ze-bian-xie-1-gui-ze-de-jie-gou/