kk的blog
2026/12/04
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
2026/11/30
firecrawl 滿好用的工具
在local裝完後 可以 開起來給其他人用
firecrawl-local serve --host 0.0.0.0 --token test1234
curl -s -X POST "http://10.0.0.1:3002/v2/scrape" -H "Host: localhost:3002" -H "Content-Type: application/json" -H "Authorization: Bearer test1234" -d '{
"url": "https://example.com",
"formats": ["markdown"]
}'
不支援直接解析本几的pdf
要在pdf的目錄起個 http server
firecrawl-local scrape http://10.0.0.1:8000/Report.pdf --markdown
