Skip to content

feat: Add rate limiting to fallback handling via token bucket #12

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Meo597
Copy link

@Meo597 Meo597 commented Mar 26, 2025

如题,fallback时限速,不影响正常reality

比自己搭nginx过滤SNI的方案更好,更简单

仅demo因此速率写死,欢迎PR我再弄config


对于reality最佳实践虽然是偷同ASN,但考虑到实际情况,大多还是找个知名网站莽就完事了
即便target现在不是CF,可能以后也会用CF等CDN

自己搭nginx限SNI对小白来说不友好,因为需要探测出目标站的所有SNI并放行,哪天target证书更新可能又有新的域
我都嫌费劲,而且流量从nginx绕了一下,感觉怪怪的

此PR使能所有reality握手失败的分别针对上下行限速,允许brust
达成效果:调大after并严格限制rate和brust,使能勉强可开个正常网页应付探测,但想把小鸡拿来中转白嫖流量基本可杜绝

效果图
image

@RPRX
Copy link
Member

RPRX commented Mar 26, 2025

@Meo597 Meo597 force-pushed the feat-fallback-ratelimit branch from 1455ffc to 4c13194 Compare May 16, 2025 21:25
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