Skip to content

feat: support OpenVPN CBC ciphers#2818

Merged
wwqgtxx merged 1 commit into
MetaCubeX:Alphafrom
RomanovCaesar:Alpha
May 21, 2026
Merged

feat: support OpenVPN CBC ciphers#2818
wwqgtxx merged 1 commit into
MetaCubeX:Alphafrom
RomanovCaesar:Alpha

Conversation

@RomanovCaesar

@RomanovCaesar RomanovCaesar commented May 21, 2026

Copy link
Copy Markdown

变更说明

本 PR 继续完善 OpenVPN outbound 支持,主要补充对传统 OpenVPN / SoftEther / VPNGate 配置中常见加密组合的兼容性。

新增能力

  • OpenVPN outbound 的 cipher 新增支持:
    • AES-128-CBC
    • AES-256-CBC
    • AES-CBC 作为 AES-128-CBC 的兼容别名
  • OpenVPN outbound 的 auth 新增支持:
    • SHA1
    • SHA-1 作为 SHA1 的兼容写法
  • OpenVPN data channel 新增 CBC 模式支持:
    • 使用随机 IV
    • 使用 HMAC-SHA1 / HMAC-SHA256 认证
    • 支持 CBC payload padding / unpadding
    • 保留现有 AEAD cipher 行为
  • 支持不包含 tls-crypt 的 OpenVPN 配置,兼容部分 SoftEther / VPNGate 生成的 .ovpn 配置。
  • 更新 docs/config.yaml 中 OpenVPN outbound 的配置说明。

测试

已测试:

go test -tags with_gvisor ./transport/openvpn ./adapter/outbound

并且,在 Windows 环境下使用多个 VPNGate / SoftEther 风格节点(使用的是如上所述新支持的加密认证方式)进行的实际连接测试皆成功,其中节点使用 AES-128-CBC + SHA1,可以正常连接和代理流量、进行分流。

Add AES-CBC data channel support with SHA1/SHA256 HMAC authentication, allow OpenVPN profiles without tls-crypt, and document the new options.
@wwqgtxx wwqgtxx merged commit 7a6a650 into MetaCubeX:Alpha May 21, 2026
dzx941 added a commit to dzx941/Meta-Docs that referenced this pull request May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants