主要用于在OpenWrt优选IP,通过集成CloudflareST-Rust实现Cloudflare IP地址的自动测速与优选,并将最优IP自动更新到Cloudflare DNS记录。
功能类别 | 具体特性 |
---|---|
🌐 IP优选 | • 自动测速CloudflareIP • 支持IPv4/IPv6优选 • 自定义测速参数 |
🔄 DNS管理 | • 自动更新Cloudflare DNS记录 • 支持多个域名和子域名 • 批量解析管理 |
📱 消息推送 | • 多种推送途径 • 自定义推送内容 |
📊 数据管理 | • 支持GitHub提交(需要令牌) |
⚙️ 灵活配置 | • YAML配置文件 • 多账户支持 • 可直接传入解析组来执行 |
curl -ksSL https://raw.githubusercontent.com/GuangYu-yu/CloudFlare-DDNS/main/setup/cfopw.sh | bash
curl -ksSL https://ghproxy.cc/https://raw.githubusercontent.com/GuangYu-yu/CloudFlare-DDNS/main/setup/cfopw.sh | bash
# 账户信息配置
account:
- account_name: "账户" # 账户标识名称
x_email: "your@email.com" # Cloudflare注册邮箱
zone_id: "your_zone_id" # 域名对应的Zone ID
api_key: "your_api_key" # Cloudflare API密钥
# DNS解析配置
resolve:
- add_ddns: "账户" # 关联的账户名称
ddns_name: "域名解析" # 解析任务名称
hostname1: "example.com" # 主域名
hostname2: "www blog shop" # 一个或多个子域名(空格分隔)
v4_num: 2 # IPv4优选IP数量
v6_num: 1 # IPv6优选IP数量
cf_command: "-n 500 -tll 20 -tl 300 -sl 15 -tp 2053 -t 8 -tlr 0.2" # 测速参数
v4_url: "https://ipv4.icanhazip.com" # IPv4地址获取接口
v6_url: "https://ipv6.icanhazip.com" # IPv6地址获取接口
push_mod: "Telegram" # 推送方式
# 插件
plugin:
clien: 不使用
# 推送
push:
- push_name: PushPlus
telegram_bot_token: null
telegram_user_id: null
pushplus_token: null
server_sendkey: null
pushdeer_pushkey: null
wechat_corpid: null
wechat_secret: null
wechat_agentid: null
wechat_userid: null
synology_chat_url: null
github_push:
- push_name: Github
ddns_push: www
file_url: https://raw.githubusercontent.com/<用户名>/<私库>/refs/heads/<分支>/<文件路径>?token=<令牌>
port: '443'
remark: ''
remark6: ''