Skip to content

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 定时运行 CloudflareSpeedTest 并自动更新到 CF 的域名上 #241

Closed
lee1080 opened this issue Oct 21, 2022 · 2 comments
Closed

Comments

@lee1080
Copy link

lee1080 commented Oct 21, 2022

思路

CloudflareSpeedTest是一个非常方便的IP优选工具,但是每次优选完成后还得自己去更新一下ip地址。
所以
写一个shell脚本,让openwrt定时执行。CloudflareSpeedTest获取到最优的IP地址后,调取cf的API将最优的IP更新到域名。访问这个域名就相当于访问这个优选后的IP地址,就非常的方便。

项目地址

我将shell脚本托管到GitHub了,有需要的可以配置一个试试。CloudflareSpeedTestDDNS

@sxml
Copy link

sxml commented Nov 23, 2022

这种修改网站DDNS 跟修改防火墙方式 替换地址方式 会反应比较慢吗?替换ip会延迟多久。

@lee1080
Copy link
Author

lee1080 commented Nov 23, 2022

这种修改网站DDNS 跟修改防火墙方式 替换地址方式 会反应比较慢吗?替换ip会延迟多久。

替换IP的延迟肯定是会有的。从老IP到新IP得看服务商的生效时间,加上本地dns的过期时间。但是也没有想象中那么慢,在替换后,可以在本地设备ping你的域名,看看新IP生效时间有多快。对节点使用来说,使用IP和使用域名延迟是一样的。

@XIU2 XIU2 changed the title 让openwrt定时运行CloudflareSpeedTest并自动更新到cf的域名上 OpenWrt 定时运行 CloudflareSpeedTest 并自动更新到 CF 的域名上 Dec 25, 2022
Repository owner locked and limited conversation to collaborators Mar 1, 2023
@XIU2 XIU2 converted this issue into discussion #314 Mar 1, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants