1、先甲骨文创建ARM小鸡,系统镜像选择Ubuntu 20(非mini版)
2、创建完毕之后SSH登录小鸡。执行如下命令将小鸡重装为Debian 10
curl -fLO https://raw.githubusercontent.com/bohanyang/debi/master/debi.sh && chmod a+rx debi.sh && sudo ./debi.sh --architecture arm64 --user (自己设置用户名,不带括号) --password (自己设置密码,不带括号)
复制代码
上述命令执行就绪之后再执行命令:sudo shutdown -r now
重启等待DD完成,使用刚设置的用户名和密码登录即可
3、切换用户到root,输入如下命令将Debian的内核升级到5.10,命令执行完毕之后根据提示输入Y重启小鸡
bash <(curl -s https://raw.githubusercontent.com/07031218/normal-shell/main/bbr.sh) cloud
复制代码
4、部署WARP让小鸡拥有ipv6以达到解锁NF的目的(解锁NF需要配置V2ray的config.json文件通过分流来实现)
apt update && apt install curl sudo lsb-release -y && echo "deb http://deb.debian.org/debian $(lsb_release -sc)-backports main" | sudo tee /etc/apt/sources.list.d/backports.list && apt update && apt install net-tools iproute2 openresolv dnsutils -y && apt install wireguard-tools --no-install-recommends && curl -fsSL git.io/wgcf.sh | sudo bash && wgcf register && wgcf generate && sed -i '/0.0.0.0/d' ./wgcf-profile.conf && sed -i 's/engage.cloudflareclient.com/162.159.192.1/g' ./wgcf-profile.conf && sed -i 's/1.1.1.1/9.9.9.10,8.8.8.8,1.1.1.1,8.8.4.4/g' ./wgcf-profile.conf && cp wgcf-profile.conf /etc/wireguard/wgcf.conf && systemctl start wg-quick@wgcf && systemctl enable wg-quick@wgcf && grep -qE '^[ ]*label[ ]*2002::/16[ ]*2' /etc/gai.conf || echo 'label 2002::/16 2' | sudo tee -a /etc/gai.conf
复制代码
5、检测ipv6 访问Netfilx是否解锁成功
apt install -y curl jq && bash <(curl -sSL https://raw.githubusercontent.com/Netflixxp/NF/main/nf.sh)
复制代码
6、配置双outbounds(ipv4&ipv6),并在routing设置中指定Netflix走ipv6. 配置geosite需要geosite.dat,如果没装会报错,自行用下面代码替换v2ray.json中对应部分,实现netflix分流走ipv6解锁
"outbounds": [
{
"tag":"IPv4_out",
"protocol": "freedom"
},
{
"tag":"IPv6_out",
"protocol": "freedom",
"settings": {
"domainStrategy": "UseIPv6"
}
}
],
"routing": {
"rules": [
{
"type": "field",
"outboundTag": "IPv6_out",
"domain": ["geosite:netflix","nflxvideo.net","nflxext.com","nflxso.net"]
},
{
"type": "field",
"outboundTag": "IPv4_out",
"network": "udp,tcp"
}
]
}
复制代码 |