[GH-ISSUE #4914] [Feature]: 出站规则增加的Hysteria不是Hysteria2吗? #3438

Closed
opened 2026-10-31 20:32:25 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @kof8855 on GitHub (Jun 4, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4914

我的另一台Hysteria2服务器配置了混淆
obfs: salamander
obfs-password: lTYXJt4n232323oLk6
skip-cert-verify: true
但是这个参数没法在出站协议Hysteria里面添加

Describe the solution you'd like

请解答

Alternatives you've considered

No response

Concrete use case

No response

Mockups, screenshots, or examples

No response

Which parts of the panel would this affect?

No response

Are you willing to help?

  • I'd like to implement this feature myself and open a PR.
  • I can help test once a PR is open.

Before submitting

  • I searched existing issues and this feature has not been requested.
  • This feature request is written in English.
Originally created by @kof8855 on GitHub (Jun 4, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4914 ### Is your feature request related to a problem? 我的另一台Hysteria2服务器配置了混淆 obfs: salamander obfs-password: lTYXJt4n232323oLk6 skip-cert-verify: true 但是这个参数没法在出站协议Hysteria里面添加 ### Describe the solution you'd like 请解答 ### Alternatives you've considered _No response_ ### Concrete use case _No response_ ### Mockups, screenshots, or examples _No response_ ### Which parts of the panel would this affect? _No response_ ### Are you willing to help? - [ ] I'd like to implement this feature myself and open a PR. - [ ] I can help test once a PR is open. ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this feature has not been requested. - [x] This feature request is written in English.
bsakaguchi 2026-10-31 20:32:25 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Jun 4, 2026):

关于 Hysteria 出站与 Hysteria2 的关系

是的,面板里的 Hysteria 出站协议就是 Hysteria2。 版本号在表单中已锁定为 2,生成的分享链接格式为 hysteria2://,使用的就是 Hysteria2 协议。


如何配置 Salamander 混淆(obfs: salamander)

Salamander 混淆已经在出站表单中支持,通过 FinalMask 的 UDP Masks 部分进行配置:

  1. 打开该 Hysteria 出站的编辑表单
  2. 在流设置(Stream Settings)区域,找到 UDP Masks 一栏
  3. 点击 + 按钮添加一条 UDP Mask
  4. 类型(Type)默认就是 Salamander (Hysteria2)
  5. 在 Password 字段中填入混淆密码(即你服务器的 obfs-password 值)

对应的配置路径为 streamSettings.finalmask.udp[{type: "salamander", settings: {password: "你的密码"}}]。


关于 skip-cert-verify: true

当前出站 TLS 表单(Security = TLS)没有 allowInsecure(跳过证书验证)的开关。可以通过以下方式处理:

  • 方式一(JSON 编辑器): 在出站表单切换到 JSON 选项卡,在 streamSettings.tlsSettings.settings 对象中手动添加 "allowInsecure": true,保存即可。
  • 方式二(固定证书): 如果你有服务器证书的 SHA256 指纹,可以填入 TLS 表单中的 Pinned SHA256 字段,替代跳过验证的做法(更安全)。

如有其他问题,欢迎继续反馈。

<!-- gh-comment-id:4623609789 --> @github-actions[bot] commented on GitHub (Jun 4, 2026): ## 关于 Hysteria 出站与 Hysteria2 的关系 **是的,面板里的 Hysteria 出站协议就是 Hysteria2。** 版本号在表单中已锁定为 `2`,生成的分享链接格式为 `hysteria2://`,使用的就是 Hysteria2 协议。 --- ## 如何配置 Salamander 混淆(obfs: salamander) Salamander 混淆已经在出站表单中支持,通过 **FinalMask** 的 **UDP Masks** 部分进行配置: 1. 打开该 Hysteria 出站的编辑表单 2. 在流设置(Stream Settings)区域,找到 **UDP Masks** 一栏 3. 点击 **`+`** 按钮添加一条 UDP Mask 4. 类型(Type)默认就是 **`Salamander (Hysteria2)`** 5. 在 **Password** 字段中填入混淆密码(即你服务器的 `obfs-password` 值) 对应的配置路径为 `streamSettings.finalmask.udp[{type: "salamander", settings: {password: "你的密码"}}]`。 --- ## 关于 skip-cert-verify: true 当前出站 TLS 表单(Security = TLS)**没有** `allowInsecure`(跳过证书验证)的开关。可以通过以下方式处理: - **方式一(JSON 编辑器):** 在出站表单切换到 **JSON** 选项卡,在 `streamSettings.tlsSettings.settings` 对象中手动添加 `"allowInsecure": true`,保存即可。 - **方式二(固定证书):** 如果你有服务器证书的 SHA256 指纹,可以填入 TLS 表单中的 **Pinned SHA256** 字段,替代跳过验证的做法(更安全)。 --- 如有其他问题,欢迎继续反馈。
Author
Owner

@MHSanaei commented on GitHub (Jun 4, 2026):

Image
<!-- gh-comment-id:4623643099 --> @MHSanaei commented on GitHub (Jun 4, 2026): <img width="689" height="427" alt="Image" src="https://github.com/user-attachments/assets/01b2825e-15b7-4373-8785-e115906a6a44" />
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#3438
No description provided.