如果openclash链接原生的vps,服务正常,但是链接采用warp增加ipv6加强ip的时候会提示错误,定位问题是vps的分流规则错误导致。解决方案是:
- 定义一个shell脚本
vi v2ray_rules.sh
#!/bin/bash
cd /usr/bin/v2ray/
wget https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat
wget https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat
- 执行脚本
chmod +x ./v2ray_rules.sh
./v2ray_rules.sh
- 修改v2ray配置文件config.json,对分流规则使用最新的
"geosite:paypal","geoip:paypal","geosite:spotify","geoip:spotify","geosite:disney","geoip:disney",
"geosite:netflix","geoip:netflix"
- 重启服务
systemctl restart v2ray
ps -ef | grep v2ray