界面是这个样子

特点
- 使用 bpf 规则过滤
- 多规则切换
- 实时速率
- 总流量
- 响应式 UI
- 资源占用小,Rust 编写
- docker 部署
Github 地址
https://github.com/ZingerLittleBee/netop
如何使用
docker run -it --rm --net=host zingerbee/netop
按 e 输入新 bpf 规则 , 回车确认
使用方向键 <- 和 -> 在不同规则间切换
按 q 就可以退出了
题外话
想通过编码的方式获得流量等参数, 可以看下我封装的 pcap 的库 https://github.com/ZingerLittleBee/netraffic