[GH-ISSUE #4054] Add up_mbps, down_mbps, and ignore_client_bandwidth settings for Hysteria2 protocol #2750

Closed
opened 2026-10-31 20:27:40 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @mrnickson-hue on GitHub (Apr 21, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4054

In 3X-UI v2.9.0, Hysteria2 protocol is supported, but there is no way to configure server-side bandwidth limits (up_mbps, down_mbps) or the ignore_client_bandwidth flag. These settings are essential for traffic control, but they are mutually exclusive according to Hysteria2 documentation.

Currently, Hysteria2 inbound in 3X-UI only allows basic fields. No bandwidth-related options are available.

Please add two mutually exclusive modes for Hysteria2 bandwidth control in the inbound configuration UI:

Mode 1: Brutal (fixed rate limiting)

  • Fields: up_mbps (integer, upload limit in Mbps)
  • Fields: down_mbps (integer, download limit in Mbps)
  • Effect: Enables Brutal congestion control. Server enforces fixed bandwidth caps.
  • ignore_client_bandwidth must be implicitly false (or not present).

Mode 2: BBR (ignore client bandwidth)

  • Field: ignore_client_bandwidth (boolean checkbox)
  • Effect: Server forces clients to use BBR congestion control, ignoring client's bandwidth requests.
  • up_mbps and down_mbps must not be set when this is true.

The UI should prevent enabling both modes simultaneously. This can be implemented as:
A radio button group: "Bandwidth control mode" → "Brutal (fixed limits)" or "BBR (ignore client bandwidth)"
Or a checkbox "Ignore client bandwidth" that disables the up_mbps/down_mbps input fields when checked.

Example config snippets
Mode 1 – Brutal (fixed limits):

{
      "listen": "0.0.0.0",
      "port": 25074,
      "protocol": "hysteria",
       "up_mbps": 100,
       "down_mbps": 200
 }

Mode 2 – BBR (ignore client bandwidth):

{
      "listen": "0.0.0.0",
      "port": 25074,
      "protocol": "hysteria",
       "ignore_client_bandwidth": true
 }

P.S.: Hysteria2 official docs state: "ignore_client_bandwidth and up_mbps/down_mbps are mutually exclusive" so mutual exclusivity must be enforced in UI to prevent invalid configs that would break the protocol.

Describe the solution you'd like

Describe alternatives you've considered

Checklist

  • This feature report is written entirely in English.
Originally created by @mrnickson-hue on GitHub (Apr 21, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4054 ### Is your feature request related to a problem? In 3X-UI v2.9.0, Hysteria2 protocol is supported, but there is no way to configure server-side bandwidth limits (_up_mbps_, _down_mbps_) or the _ignore_client_bandwidth_ flag. These settings are essential for traffic control, but they are mutually exclusive according to Hysteria2 documentation. Currently, Hysteria2 inbound in 3X-UI only allows basic fields. No bandwidth-related options are available. Please add two mutually exclusive modes for Hysteria2 bandwidth control in the inbound configuration UI: **Mode 1: Brutal (fixed rate limiting)** - Fields: _up_mbps_ (integer, upload limit in Mbps) - Fields: _down_mbps_ (integer, download limit in Mbps) - Effect: Enables Brutal congestion control. Server enforces fixed bandwidth caps. - _ignore_client_bandwidth_ must be implicitly false (or not present). **Mode 2: BBR (ignore client bandwidth)** - Field: _ignore_client_bandwidth_ (boolean checkbox) - Effect: Server forces clients to use BBR congestion control, ignoring client's bandwidth requests. - _up_mbps_ and _down_mbps_ must not be set when this is true. **The UI should prevent enabling both modes simultaneously. This can be implemented as:** A radio button group: "Bandwidth control mode" → "Brutal (fixed limits)" or "BBR (ignore client bandwidth)" Or a checkbox "Ignore client bandwidth" that disables the _up_mbps_/_down_mbps_ input fields when checked. **Example config snippets Mode 1 – Brutal (fixed limits):** ``` { "listen": "0.0.0.0", "port": 25074, "protocol": "hysteria", "up_mbps": 100, "down_mbps": 200 } ``` **Mode 2 – BBR (ignore client bandwidth):** ``` { "listen": "0.0.0.0", "port": 25074, "protocol": "hysteria", "ignore_client_bandwidth": true } ``` P.S.: Hysteria2 official docs state: "_ignore_client_bandwidth and up_mbps/down_mbps are mutually exclusive_" so mutual exclusivity must be enforced in UI to prevent invalid configs that would break the protocol. ### Describe the solution you'd like - ### Describe alternatives you've considered - ### Checklist - [x] This feature report is written entirely in English.
bsakaguchi 2026-10-31 20:27:40 +07:00
Author
Owner
<!-- gh-comment-id:4288038982 --> @MHSanaei commented on GitHub (Apr 21, 2026): https://xtls.github.io/config/inbounds/hysteria.html
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#2750
No description provided.