|
|
本帖最后由 cdn852 于 2021-12-1 19:50 编辑
方法一,NAT64,具体看我另一贴。
方法二,安装Warp ipv6,具体步骤如下,以wulabing的富强脚本为例。
1,安装富强,运行wget -N --no-check-certificate -q -O install.sh "https://raw.githubusercontent.com/wulabing/Xray_onekey/main/install.sh" && chmod +x install.sh && bash install.sh
2,安装warp ipv6,运行bash <(curl -fsSL git.io/warp.sh) 6
3,打开config.json(位置:/usr/local/etc/xray/config.json,其余脚本自己找),将 "outbounds"后面的代码换成下面代码(非wulabing的富强脚本自己摸索,多个括号与少个括号的区别)。
"outbounds": [
{
"tag":"IP4_out",
"protocol": "freedom",
"settings": {}
},
{
"tag":"IP6_out",
"protocol": "freedom",
"settings": {
"domainStrategy": "UseIPv6" // 指定使用 IPv6
}
}
],
"routing": {
"rules": [
{
"type": "field",
"outboundTag": "IP6_out",
"domain": ["domain:google.com"] // google走 IPv6
},
{
"type": "field",
"outboundTag": "IP4_out",
"network": "udp,tcp"// 其余走 IPv4
}
]
}
}
4,重启小鸡:reboot |
|