update speedlimit

This commit is contained in:
pocketW 2022-10-14 15:14:19 +11:00
parent 1e3aa170e9
commit f5e14a433e
3 changed files with 38 additions and 6 deletions

View File

@ -6,6 +6,10 @@
配置文件详见:[配置文件说明](../xrayr-pei-zhi-wen-jian-shuo-ming/config.md#mian-ban-dui-jie-pei-zhi)
{% hint style="info" %}
每一个独立IP地址视为一个设备。
{% endhint %}
## 全局设备限制
当XrayR版本>=v0.7.1SSpanel版本>=[2021.9](https://github.com/Anankke/SSPanel-Uim/releases/tag/2021.9)XrayR将会针对SSpanel启用全局设备限制功能。此时不同后端结点将会全局限制独立IP连接数量而非各后端本地限制。

View File

@ -14,3 +14,20 @@
配置文件详见:[配置文件说明](../xrayr-pei-zhi-wen-jian-shuo-ming/config.md#mian-ban-dui-jie-pei-zhi)
## 动态限速功能
XrayR支持动态限速功能可以根据用户的使用流量调整限速值。在`ControllerConfig` 中配置如下项。
```yaml
AutoSpeedLimitConfig:
Limit: 0 # Warned speed. Set to 0 to disable AutoSpeedLimit (mbps)
WarnTimes: 0 # After (WarnTimes) consecutive warnings, the user will be limited. Set to 0 to punish overspeed user immediately.
LimitSpeed: 0 # The speedlimit of a limited user (unit: mbps)
LimitDuration: 0 # How many minutes will the limiting last (unit: minute)
```
| 参数 | 说明 |
| ------------- | --------------------------------------------------------------------------- |
| Limit | 警告速度。设置为0以禁用自动限速功能。单位Mbps。 |
| WarnTimes | 警告次数。连续警告次数达到该值后用户将被限速。设置为0以立即惩罚超速用户。 |
| LimitSpeed | 限速值。单位Mbps。 |
| LimitDuration | 限速时长。单位:分钟。 |

View File

@ -46,7 +46,12 @@ Nodes:
DisableGetRule: false # Disable Get Rule from the panel
DisableIVCheck: false # Disable the anti-reply protection for Shadowsocks
DisableSniffing: false # Disable domain sniffing
EnableProxyProtocol: false # Only works for WebSocket and TCP
EnableProxyProtocol: false
AutoSpeedLimitConfig:
Limit: 0 # Warned speed. Set to 0 to disable AutoSpeedLimit (mbps)
WarnTimes: 0 # After (WarnTimes) consecutive warnings, the user will be limited. Set to 0 to punish overspeed user immediately.
LimitSpeed: 0 # The speedlimit of a limited user (unit: mbps)
LimitDuration: 0 # How many minutes will the limiting last (unit: minute)
EnableFallback: false # Only support for Trojan and Vless
FallBackConfigs: # Support multiple fallbacks
-
@ -279,9 +284,9 @@ Nodes:
PanelType: "V2board" # Panel type: SSpanel, V2board, PMpanel, Proxypanel
```
| 参数 | 选项 | 说明 |
| ----------- | ------------------------------------------ | ---------------- |
| `PanelType` | `SSPanel`,`V2board`,`PMpanel`,`Proxypanel`, `V2RaySocks`| 对接前端面板类型 |
| 参数 | 选项 | 说明 |
| ----------- | -------------------------------------------------------- | ---------------- |
| `PanelType` | `SSPanel`,`V2board`,`PMpanel`,`Proxypanel`, `V2RaySocks` | 对接前端面板类型 |
#### 面板对接配置
@ -327,7 +332,12 @@ ControllerConfig:
DisableGetRule: false # Disable Get Rule from the panel
DisableIVCheck: false # Disable the anti-reply protection for Shadowsocks
DisableSniffing: false # Disable domain sniffing
EnableProxyProtocol: false # Only works for WebSocket and TCP
EnableProxyProtocol: false
AutoSpeedLimitConfig:
Limit: 0 # Warned speed. Set to 0 to disable AutoSpeedLimit (mbps)
WarnTimes: 0 # After (WarnTimes) consecutive warnings, the user will be limited. Set to 0 to punish overspeed user immediately.
LimitSpeed: 0 # The speedlimit of a limited user (unit: mbps)
LimitDuration: 0 # How many minutes will the limiting last (unit: minute)
EnableFallback: false # Only support for Trojan and Vless
FallBackConfigs: # Support multiple fallbacks
-
@ -348,7 +358,8 @@ ControllerConfig:
| `DisableGetRule` | `false`, `true` | 是否禁止获取远程规则,默认`false` |
| `DisableIVCheck` | `false`, `true` | 是否关闭Shadowsocks用于防止重放攻击的布隆过滤器默认`false` |
| `DisableSniffing` | `false`, `true` | 是否关闭domain sniffing默认`false` |
| `EnableProxyProtocol` | `true`,`false` | 是否为当前节点启用ProxyProtocol获取中转IP只对TCP和WS有效 |
| `EnableProxyProtocol` | `true`,`false` | 是否为当前节点启用ProxyProtocol获取中转IP |
| `AutoSpeedLimitConfig` | list | 动态限速相关配置,请查看 [动态限速](../gong-neng-shuo-ming/speedlimit.md) |
| `EnableFallback` | `true`,`false` | 是否为当前节点启用Fallback只对Vless和Trojan协议有效 |
| `FallBackConfigs` | list | Fallback 相关配置,请查看 [Fallback功能说明](../gong-neng-shuo-ming/fallback.md) |