Cloudflare WARP 一键配置脚本

感谢P3TERX大佬带来这么好用的脚本,项目地址https://github.com/P3TERX/warp.sh
无论 VPS 是 IPv4 还是 IPv6 又或都有,添加 WARP Wire­Guard 双栈全局网络,直接使用以下命令一把梭:
自动配置 WARP WireGuard 双栈全局网络

1
bash <(curl -fsSL git.io/warp.sh) d

添加或置换 IPv4/​IPv6 网络中的一个为 WARP Wire­Guard 网络,使用以下命令一把梭:
自动配置 WARP WireGuard IPv4 网络

1
bash <(curl -fsSL git.io/warp.sh) 4

自动配置 WARP WireGuard IPv6 网络

1
bash <(curl -fsSL git.io/warp.sh) 6

Cloudflare WARP 一键配置脚本 功能菜单

1
bash <(curl -fsSL git.io/warp.sh) menu

Cloud­flare 官方于近期发布了 WARP Linux 客户端,同时也带来了全新的 Proxy Mode 功能,它使得我们可以让应用通过本地的 SOCKS5 代理端口去直接使用 WARP 网络。对于想尝鲜官方客户端的小伙伴,可以使用以下命令一把梭自动安装 WARP 官方客户端并开启 SOCKS5 本机代理端口 (127.0.0.1:40000):
自动配置 WARP 官方客户端 SOCKS5 代理

1
bash <(curl -fsSL git.io/warp.sh) s5

勇哥一键脚本(适用德鸡)

1
wget -N --no-check-certificate https://cdn.jsdelivr.net/gh/kkkyg/CFwarp/CFwarp.sh && chmod +x CFwarp.sh && ./CFwarp.sh

进入脚本快捷方式 bash CFwarp.sh
注:EUserv德鸡DIG9用户请先执行

1
echo -e "search blue.kundencontroller.de\noptions rotate\nnameserver 2a02:180:6:5::1c\nnameserver 2a02:180:6:5::4\nnameserver 2a02:180:6:5::1e\nnameserver 2a02:180:6:5::1d" > /etc/resolv.conf

WARP分流:
安装好之后编辑/usr/local/etc/xray/config.json 替换整个 “outbounds”命令,以下是改好的配置文件。只Netflix走IPv6,其余走ipv4

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
"outbounds": [
{
"tag":"IP4_out",
"protocol": "freedom",
"settings": {}
},
{
"tag":"IP6_out",
"protocol": "freedom",
"settings": {
"domainStrategy": "UseIPv6" // 指定使用 IPv6
}
}
],
"routing": {
"rules": [
{
"type": "field",
"outboundTag": "IP6_out",
"domain": ["geosite:netflix"] // netflix 走 IPv6
},
{
"type": "field",
"outboundTag": "IP4_out",
"network": "udp,tcp"// 其余走 IPv4
}
]
}
}

还有一种情况,就是你的小鸡使用的是垃圾ip,每次看YouTube的时候或是看google的时候,都会跳出提示,让你验证,这个是因为你的vps的ipv4被拉黑或是共享ip。每次提示都很烦人,那么我们也可以把google和YouTube加入的走ipv6的线路。
还是上面的代码,只有改其中一行就行

1
"domain": ["geosite:netflix","geosite:google","geosite:youtube"] // netflix google YouTube走 IPv6

xray重启

1
systemctl restart xray

检查是否xray报错

1
systemctl status xray

复查其他线路有没有走ipv6
https://test-ipv6.com/index.html.zh_CN

ipv6测速

1
2
curl -fsSL git.io/speedtest-cli.sh | sudo bash
speedtest

解锁检测

1
yum install -y curl jq 2> /dev/null || apt install -y curl jq && bash <(curl -sSL https://raw.githubusercontent.com/Netflixxp/NF/main/nf.sh)