手动为IPv6-only境外服务器添加WARP IPv4出口(mihomo方案)
🔧 配置准备1. 生成WireGuard密钥对# 使用wgcf工具生成(需提前安装)
git clone https://github.com/ViRb3/wgcf
cd wgcf
./wgcf generate📌 注意:生成的 private-key 和 public-key 需妥善保存此工具非Cloudflare官方客户端,但兼容WARP协议2. 获取WARP服务器IPv6地址dig AAAA engage.cloudflareclient.com +short
# 备用地址(示例):
2606:4700:d0::a29f:c001🛠️ 配置文件详解# config.yaml
log: debug # 调试模式便于排查问题
dns:
enable: true
ipv6: true # 启用IPv6 DNS解析
nameserver:
- 2001:4860:4860::8888 # Google IPv6 DNS
- 2001:4860:4860::8844
tun:
enable: true
stack: system # 使用系统