項目地址:https://github.com/WhiteHat123456/netmon

A generic bandwidth smart controller for solusvm.
wget -qO- https://github.com/netmon20/netmon/releases/download/v1.0/linux-amd64-netmon > netmon && chmod +x netmon
本監控工具可以動態監控 SolusVM 開通的 QEMU 小雞(虛擬化不限),并對過度使用流量者加以限制。本工具的原理為系統的 tc 限流,因此目前只建議在母雞上使用。
本監控工具自帶管理界面(默認端口 8358 默認用戶 netmon 默認密碼 netmon20,如果想暴露至公網,請修改密碼以免被入侵)。
在管理界面中,你可以隨時監控所有小雞的實時帶寬和統計流量,并進行限速或者白名單等操作。
關于不同帶寬上限的可以靈活調整啟動命令來適應不同場景,具體配置請查看參數。
最后,這個工具誕生的初衷是為了減少濫用,而不是瘋狂超售,因此請合理使用。
構建
首先你需要安裝 golang,若你不想自己編譯,可以直接在 release 頁面下載編譯好的二進制文件。
# go get -u github.com/go-bindata/go-bindata/…
# go-bindata -fs -prefix “static/” static/
# 上面兩步不需要了,因為靜態資源已經打包完成
go build -o netmon .
就是這么簡單。
額外配置
默認啟動
./netmon -ifce=kvm -qos
上面代表監控所有 kvm 小雞并開啟 QoS
參數表
Usage of ./netmon:
-ifce string
Network interface prefix (String: null)
-intv int
Updating interval (Second: 3s) (default 3)
-limit int
Limit the bandwidth to (Minute: Min) (default -1)
-log int
Log level (Number: 3) (default 3)
-max int
Maximum scale of bandwidth (KBit: 80Mbps) (default 81920)
-min int
Minimun scale of bandwidth (KBit: 8Mbps) (default 8192)
-pass string
Password of panel [Username: netmon] (String: netmon20) (default “netmon20”)
-port int
Binding port (Number: 8358) (default 8358)
-ptime int
Overrun machine will be limited for this long (Minute: 10m) (default 10)
-qos
Run QOS (Bool: false)
-time int
Machine overrun exceeds this period of time will receive a limit (Second: 45s) (default 45)
搬瓦工推薦方案
| 方案 | 內存 | CPU | 硬盤 | 流量/月 | 帶寬 | 機房 | 價格 | 購買 |
|---|---|---|---|---|---|---|---|---|
| CN2 (最便宜) |
1GB | 1核 | 20GB | 1TB | 1Gbps | DC3 CN2 DC8 ZNET |
$49.99/年 | 直達 |
| CN2 | 2GB | 1核 | 40GB | 2TB | 1Gbps | $52.99/半年 $99.99/年 |
直達 | |
| CN2 GIA-E (最推薦) |
1GB | 2核 | 20GB | 1TB | 2.5Gbps | DC6 CN2 GIA-E DC9 CN2 GIA 日本軟銀 JPOS_1 荷蘭 EUNL_9 |
$49.99/季度 $169.99/年 |
直達 |
| CN2 GIA-E | 2GB | 3核 | 40GB | 2TB | 2.5Gbps | $89.99/季度 $299.99/年 |
直達 | |
| HK | 2GB | 2核 | 40GB | 0.5TB | 1Gbps | 中國香港 CN2 GIA | $89.99/月 $899.99/年 |
直達 |
| HK | 4GB | 4核 | 80GB | 1TB | 1Gbps | $155.99/月 $1559.99/年 |
直達 | |
| TOKYO | 2GB | 2核 | 40GB | 0.5TB | 1.2Gbps | 日本東京 CN2 GIA | $89.99/月 $899.99/年 |
直達 |
| TOKYO | 4GB | 4核 | 80GB | 1TB | 1.2Gbps | $155.99/月 $1559.99/年 |
直達 | |
| 搬瓦工優惠碼:BWHNCXNVXV | 2023年最新搬瓦工VPS購買圖文教程 | |||||||









![搬瓦工:荷蘭[EUNL_2]機房測評,含速度/丟包/延遲/線路/流媒體解鎖等,年付$49.99起-國外主機測評](http://www.lrracing.com/wp-content/uploads/2026/08/20260807233641.png)










