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] 速度检测模式按服务端配置 #1908

Open
htfcuddles opened this issue Feb 8, 2025 · 0 comments
Open

[Feature request] 速度检测模式按服务端配置 #1908

htfcuddles opened this issue Feb 8, 2025 · 0 comments

Comments

@htfcuddles
Copy link

需求应用场景
在路由设备上同时安装了smartdns 与科学上网服务的情况下(常见场景),ping流量不会走代理而TCP流量会,这导致了全局翻墙(跳过国内IP)时,国外IP的测速方式与国内IP需求不同。
希望达成的场景:

  1. 国内IP采用ping->tcp:80->tcp:443顺序测速,首次TTL最短
  2. 国外IP采用tcp:80->tcp:443->ping顺序测速,测速可以走翻墙线路,通过配置不同国家上游DNS,返回实际连接最快线路。
    在国外网站使用跨国CDN时,不同国家的相应时间差异远大于国内,全局配置测速模式无法同时适用国内外不同需求。

建议的方案
bind增加 speed-check-mode 选项允许按服务端配置测速模式。
例如

#国内解析,默认服务器
bind :6053 -speed-check-mode ping,tcp:80,tcp:443
#国外解析,第二服务器
bind :6553 -speed-check-mode tcp:80,tcp:443,ping

设备信息

  1. 设备信息(CPU,厂家)
    x86软路由

  2. 固件信息
    Openwrt

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

No branches or pull requests

1 participant