-
Notifications
You must be signed in to change notification settings - Fork 4.2k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
请问openwrt下的openclash要怎么启用自动更换IP #191
Comments
不清楚,我没有 OpenWrt 设备。。。因此我连你说的 openclash 是什么都不知道。。。 |
用自带的脚本修改hosts |
我猜,你的问题是,如果使用工具找出了高速的Cloudflare的IP节点,如何更新到自己的v2ray这类节点上。 在这里我是这样做的
bat脚本例子: DDNS_UID = changeip.com user id |
我也有你这个想法,打算周末写个脚本,目前思路是: 2、stop openclash后用作者的优选工具选出5个较快的cf ip。 3、修改/etc/openclash/config下在用的yaml文件,把proxies里面5个节点的server修改成第2步获取到的5个ip地址。(因为openclash无法用uci set修改节点) 4、重新启动openclash。 |
可以看看issue里面其它主题,有一个scan ip的项目我用下来感觉可以,找出的ip都延迟很小。 |
我主要是考虑到使用优选工具前需要先把openclash的‘路由本机代理’这个选项关掉才能正确地优选IP和openclash自身restart速度很慢才去直接stop它,虽然openclash的stop函数确实有点粗暴~ |
测速和优选都有在没有外网的环境下做,很费时,而且,我认为并不是带宽越大越好,最好还是节点离用户侧更近,延迟更少,才越稳定,性能也好,所以,我最近都在用IP—scaner的结果集去测速,这样快很多,效果很好,选五个节点做负载平衡,一般4k稳定秒开。 |
2 similar comments
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
写了两个小脚本,可以完成你说的启用自动更换IP; |
提个小建议,测速前把openclash关掉,测速结果会更准确。或者uci set openclash.config.router_self_proxy='0'把’路由本机代理‘关掉,但可能是因为我用的是meta内核,貌似第二个方法并不生效。 |
就是因为openclash干扰测速,所以crontab里的测速是在非openclash的路由器上完成的,再把最优结果ssh去openclash所在路由器。我的情况是把安装openclash的路由作为旁路由使用。 |
我不使用meta内核,这个关掉后reload配置,本机代理仍旧生效。 |
可以把cloudflare 测速地址,加入规则配置 -DOMAIN,url,DIRECT |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
请问openwrt下的openclash要怎么启用自动更换IP
The text was updated successfully, but these errors were encountered: