2026/12/02

好久沒關心 suricata 了

昨天看了一下 目前已經到 8.0.8 版

想說來升級一下

安裝依照官方文件做沒什麼問題

重點是安裝後

有几個地方要調整

首先是 /etc/sysconfig/suricata

如果是使用 systemctl start suricata 

那要注意以下的監聽介面 預設是 eth0 要照需求修正


OPTIONS="-i eth1 --user suricata "


再來是 /etc/suricata/suricata.yaml

HOME_NET: "[192.168.0.0/16,10.0.0.0/8]" 這個要改


再來 eve-log 這個可以先關掉  

  - eve-log:

      enabled: no

因為預設 event 會寫到

/var/log/suricata/fast.log


再來

af-packet:

  - interface: eth1

這個要照需求修正 預設是 eth0


接下來就是rule相關的操作

/etc/suricata/disable.conf 這裡放不需要使用的rule id 一行一個


再來就是重要的 suricata-update

下載預設規則集

suricata-update


更新規則也用同一條指令:

suricata-update


查看與啟用規則來源

更新可用來源清單,再列出來源:

suricata-update update-sources

suricata-update list-sources


啟用來源後重新更新規則,例如:

suricata-update enable-source oisf/trafficid

suricata-update


查看目前已啟用的來源:

suricata-update list-enabled-sources


停用來源

suricata-updatedisable-source


來源有分開源跟商業版 要注意看一下

suricata-update list-sources --free 只列出免費來源

suricata-update --help


suricata-update後記得要 systemctl restart suricata


建議先跑個一陣子 看看有那些rule 可以先disable 

避免太多event


有時rule update會有問題

2/12/2026 -- 10:38:17 - <Error> -- Failed to fetch https://urlhaus.abuse.ch/downloads/urlhaus_suricata.tar.gz: HTTP Error 410: Gone


https://suricata.io/

https://suricata.io/download/

https://docs.suricata.io/en/latest/index.html

https://rules.suricata.io/

沒有留言: