# 一键安装脚本
wget -N https://gitlab.com/rwkgyg/CFwarp/raw/main/CFwarp.sh && bash CFwarp.sh
CloudFlare Warp IPV4 地址稀少, 改用IPV6
# Settings -> IPV6 —> Add
# 步骤1, 启动脚本
./CFwarp.sh
# 步骤2,选择2
# 提示:
# 一、选项1与2任意选,支持相互切换
# 二、进入脚本快捷方式:cf
# =================================================================
# 1. 选择 warp-go 内核安装WARP
# 2. 选择 wgcf 内核安装WARP
# 0. 退出脚本
# =================================================================
# 步骤3, 选择1 (Socks5-WARP 不支持 IPV6)
# 任意选择适合自己的warp现实方案(选项1、2、3,可单选,可多选共存)
# 进入脚本快捷方式:cf
# =================================================================
# 1. 方案一:安装/切换WGCF-WARP
# 2. 方案二:安装Socks5-WARP
# 3. 方案三:显示Xray-WireGuard-WARP代理配置文件、二维码
# 4. 卸载WARP
# -----------------------------------------------------------------
# 5. 关闭、开启/重启WARP
# 6. WARP其他选项:查看WARP进程守护,刷WARP+流量……
# 7. WARP三类账户升级/切换(WARP/WARP+/WARP Teams)
# 8. 更新CFwarp安装脚本
# 9. 将当前WGCF-WARP内核替换为WARP-GO内核
# 0. 退出脚本
# 步骤4,选择2, 不搭配分流规则
# 提示:VPS的本地出站IP将被你选择的warp的IP所接管,如VPS本地无该出站IP,则被另外生成warp的IP所接管
# 如果你什么都不懂,回车便是!!!
# 1. 安装/切换wgcf-warp单栈IPV4(回车默认)
# 2. 安装/切换wgcf-warp单栈IPV6
# 3. 安装/切换wgcf-warp双栈IPV4+IPV6
# 步骤5, 设置完成,回看终端输出
# ------------------------------------------------------------------------------------
# 方案一:当前 IPV4 接管出站流量情况如下(WARP监测已开启)
# WARP状态:关闭中
# 服务商 Tencent Cloud Computing 获取IPV4地址:xxx.xxx.xxx.xxx xxx
# 奈飞NF解锁情况:遗憾,当前IP仅可观看Netflix自制剧
# ChatGPT解锁情况:遗憾,当前IP无法访问ChatGPT官网服务
# ------------------------------------------------------------------------------------
# 方案一:当前 IPV6 接管出站流量情况如下(WARP监测已开启)
# WARP状态:运行中,WARP普通账户(无限WARP流量)
# 服务商 Cloudflare 获取IPV6地址:xxxx:xxxx:xxxx:xxxx::xxxx:xxxx xxx
# 奈飞NF解锁情况:遗憾,当前IP仅可观看Netflix自制剧
# ChatGPT解锁情况:恭喜,当前IP支持访问ChatGPT官网服务
# ------------------------------------------------------------------------------------
# 注意:别忘了将绑定的域名解析到cloudflare,并将代理状态设置为仅DNS
# 使用这个命令,每次重启都会刷新IP
systemctl restart wg-quick@wgcf
# outbounds 增加一栏
# {
# "tag": "IP6_out",
# "protocol": "freedom",
# "settings": {
# "domainStrategy": "UseIPv6"
# }
# routing 给每个rules 增加 type, domain 和 outboundTag
# "type": "field",
# "domain": [ "openai.com" ],
# "outboundTag": "IP6_out"
{
"api": {
"services": [
"HandlerService",
"LoggerService",
"StatsService"
],
"tag": "api"
},
"inbounds": [
{
"listen": "127.0.0.1",
"port": xxxx,
"protocol": "dokodemo-door",
"settings": {
"address": "127.0.0.1"
},
"tag": "api"
}
],
"outbounds": [
{
"protocol": "freedom",
"settings": {}
},
{
"tag": "IP6_out",
"protocol": "freedom",
"settings": {
"domainStrategy": "UseIPv6"
}
},
{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
}
],
"policy": {
"system": {
"statsInboundDownlink": true,
"statsInboundUplink": true
}
},
"routing": {
"rules": [
{
"inboundTag": [
"api"
],
"type": "field",
"domain": [
"openai.com"
],
"outboundTag": "IP6_out"
},
{
"ip": [
"geoip:private"
],
"type": "field",
"domain": [
"openai.com"
],
"outboundTag": "IP6_out"
},
{
"protocol": [
"bittorrent"
],
"type": "field",
"domain": [
"openai.com"
],
"outboundTag": "IP6_out"
}
]
},
"stats": {}
}