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/

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



https://www.firecrawl.dev/

2026/11/26

masscan 相當快

在1G的環境下 --rate 最高可以設到 1500000

-p 建議可以 1-10000 一般自設訂的 port 很少超過 10000
 設1-65535 會花很多時間

sudo masscan 192.168.96.0/24 -p 1-10000 --rate
 1000000

2026/11/23

這二天在測試 agent0 
連接 litellm-proxy 一直有問題
看log是 token認証一直有問題
明明就沒打錯
而且在hermes agent 也沒問題
找了很久才發現是 , 的問題
因為在litellm-proxy設定的 master key 含有 ,
拿掉就正常了

2026/11/20

查看litellm-proxy各節點的健康狀態


curl -X GET 'http://10.0.0.1:4000/health' -H 'Authorization: Bearer 12345678'

2026/11/15

librenms 使用 Custom OID 時

Data Type 分為二種

說明一下要怎麼選

如果OID撈到的是當下的值而且不會持續累積

選擇 GAUGE

如果OID的值會持續累積

如果要等到當下的值 就要選擇  COUNTER

這樣才會用現在的值減到上一次的值

得到的才會是目前的值

另外如果建好後要改不同的data type

在web介面刪除後 要再進librenms os 手動刪除 對應的rrd檔 讓librenms 重建

如果不刪除 改type後 圖形不會重畫 所以會是錯的




2026/11/12

最近真的問題很多
早上又碰到 webatm不能登入




















查了半天 竟是 rsshub radar 這個plugin的問題 XD 關掉就正常了