v4.0.0

chaitin/SafeLinev4.0.0Jan 5, 2024by dundunHa

AI Summary

Major version with streaming semantic analysis, URL-based IP group subscription, and search engine crawler IPs, plus container optimizations.

Key Highlights

  • Core: Complete support for streaming semantic analysis (protocol parsing, decoding, pattern matching) to solve 'large packet bypass'
  • IP Groups: Support URL-based subscription for IP groups
  • IP Lists: Added search engine crawler IPs (Google, Bing, Baidu, 360)
  • Optimization: safeline-fvm container size reduced by 60%
  • Optimization: safeline-mgt logs standardized to Docker stdout

New Features

  • Streaming semantic analysis
  • URL IP group subscription
  • Search engine crawler IPs
  • Container size reduction
  • Logging standardization

Full Release Notes

### 新增

- 完整支持 **流式语义分析检测**,包含 协议解析、解码、模式匹配 三个阶段的改造,解决经典 “大包绕过” 问题
- IP 组支持通过 URL 在线订阅内容([#414](https://github.com/chaitin/SafeLine/issues/414))
- 新增 “搜索引擎爬虫 IP”,包含 Google、Bing、百度、360 的爬虫 IP([#374](https://github.com/chaitin/SafeLine/issues/374)、[#399](https://github.com/chaitin/SafeLine/issues/399))
- 出厂预置 “搜索引擎爬虫白名单” 和 “长亭社区恶意 IP 情报黑名单”,方便配置

### 优化
- 支持类 ChatGPT 应用的流式 HTTP 响应([#513](https://github.com/chaitin/SafeLine/issues/513))
- 在 证书管理 编辑证书后,若证书正被站点使用,自动重启 nginx 使新证书生效([#534](https://github.com/chaitin/SafeLine/issues/534))
- safeline-fvm 容器体积减小 60%
- safeline-mgt 服务减少宿主机文件依赖
- safeline-mgt 服务日志全部写入 docker 标准输出,默认仅输出启动信息和错误日志,减小磁盘占用
- safeline-mgt 服务、safeline-tengine 服务支持运行时日志输出范围设置,方便问题调试
- 更新 compose.yaml 文件配置,移除非必要环境变量配置,规范环境变量名称,移除非必要卷配置
- 增加新统计服务 safeline-luigi,为更精细的统计能力做准备
- 优化若干 UI 交互、文字描述、英文翻译的细节(感谢国际友人的帮助)
- 修复 3.16 以及之前版本的一些问题:
  - safeline-tcd 启动时因启动顺序导致输出错误提示
  - http 强制跳转到 https 功能未生效
- 修复 4.0.0-beta.x 版本中的一些问题:
  - 登录雷池失败,提示 HTTP/2 协议错误([#564](https://github.com/chaitin/SafeLine/issues/564))
  - 升级脚本未正常检测到雷池安装目录([#561](https://github.com/chaitin/SafeLine/pull/561),感谢热心网友 nmgliangwei)
  - safeline-mgt 持续输出版本号错误日志
  - 拦截页面未显示时间