Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: 希望加入流量控制模块 #538

Closed
zakuwaki opened this issue Apr 16, 2023 · 12 comments
Closed

[Feature Request]: 希望加入流量控制模块 #538

zakuwaki opened this issue Apr 16, 2023 · 12 comments
Labels

Comments

@zakuwaki
Copy link
Collaborator

zakuwaki commented Apr 16, 2023

目标:给sing-box加入流量控制模块,可以对特定的连接限制上传/下载速率,实现带宽资源的合理分配
需求:类似于router模块,抽象出一个limiter模块,可以针对inbound/outbound/domain/ip_cidr/geoip/geosite/source_ip_cidr等命中特定规则的流量实现限流,包括单链接限流或全局限流
参考:frp基于令牌桶方法实现了一套限速模块,读了sing-box的代码,应该需要和route模块深度绑定,并在sing里面封装好一套支持有锁和无锁的LimitedConn使用,奈何技术太菜写不出来,这种大规模的更改怕腐化了代码。还是得请大佬出山相助

@makaspacex
Copy link

流控是高级功能 应该挺难的 目前的开发重点应该不会集中在这个上面

@zakuwaki zakuwaki changed the title feature request: 希望加入流量控制模块 [Feature Request]: 希望加入流量控制模块 May 9, 2023
@JimmyHuang454
Copy link

你可以使用具有流量控制功能的前置代理,例如说ngnix,他们更专业,生态好,功能成熟;并且我觉得个人用户不会使用这种功能,除非是机场主

@zakuwaki
Copy link
Collaborator Author

还真不是机场主。公益给好几名同学使用,奈何个别人用来挂bt下毛片。我是想让他用,不过别把流量刷的太快搞得大家都没得用了

@zakuwaki
Copy link
Collaborator Author

#668
放假有时间学习学习,顺便手动加了

@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days

@716c
Copy link

716c commented Nov 15, 2023

还真不是机场主。公益给好几名同学使用,奈何个别人用来挂bt下毛片。我是想让他用,不过别把流量刷的太快搞得大家都没得用了

keywords: 学生;毛片;刷太快!

@173223163
Copy link

还真不是机场主。公益给好几名同学使用,奈何个别人用来挂bt下毛片。我是想让他用,不过别把流量刷的太快搞得大家都没得用了

雀氏狗

@yogurt7771
Copy link

还真不是机场主。公益给好几名同学使用,奈何个别人用来挂bt下毛片。我是想让他用,不过别把流量刷的太快搞得大家都没得用了

下bt应该不需要梯子吧

@linzzzzllll
Copy link

ios能加个小组件快速启用吗

@kkocdko
Copy link
Contributor

kkocdko commented Dec 30, 2023

有类似需求的可以考虑用楼主的 PR 自行编译,我这用了一下挺正常的。也可以考虑用 hysteria2 协议 然后配置 "up_mbps": 50, "down_mbps": 50 这样。

Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the Stale label Feb 29, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants