Evvj 大佬有话说 :
(已解决)v2ray配置路由时,domain和ip不能同时生效么?
本帖最后由 Evvj 于 2020-4-27 14:13 编辑
如题,使用v2ray配置了domain,解锁新伯力的奈飞后,加上tg的IP段,就无法解锁奈飞和tg了。
解锁路由如下所示:
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"domain": [
"domain:netflix.com",
"domain:nflxvideo.net",
"domain:nflxext.com"
],
"ip": [
"91.108.4.0/22",
"91.108.8.0/22",
"91.108.12.0/22",
"91.108.20.0/22",
"91.108.36.0/23",
"91.108.38.0/23",
"91.108.56.0/22",
"149.154.160.0/20",
"149.154.164.0/22",
"149.154.172.0/22"
],
"outboundTag": "proxy"
}
]
},
proxy已经配置完毕,去掉IP的配置,解锁奈飞没有问题,日志显示流量走的是解锁奈飞的小鸡,加上IP的配置,日志显示流量全部走新伯力的小鸡。
——————————————————————————————————-
"outbounds": [
{
"tag": "direct",
"protocol": "freedom",
"settings": {}
},
{
"tag": "blocked",
"protocol": "blackhole",
"settings": {}
},
{
"tag": "proxy",
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "hsusen.xyz",
"port": 443,
"users": [
{
"id": "53a2460b-d77c-4397-9a6e-8ee77c276989",
"alterId": 233,
"security": "none"
}
]
}
],
"servers": null,
"response": null
},
"streamSettings": {
"network": "ws",
"security": "tls",
"tlsSettings": {
"allowInsecure": false,
"serverName": "hsusen.xyz"
},
"tcpSettings": null,
"kcpSettings": null,
"wsSettings": {
"connectionReuse": true,
"path": "/hsusen",
"headers": {
"Host": "hsusen.xyz"
}
},
"httpSettings": null,
"quicSettings": null
},
"mux": {
"enabled": true
}
}
],
这样才可以啊
Evvj 大佬有话说 :
是domainStrategy域名解析策略配置有问题么?
Evvj 大佬有话说 :
现在要么使用domain解锁奈飞,要么使用ip解锁tg,我特么。。。
Evvj 大佬有话说 :
https://www.v2ray.com/chapter_02/03_routing.html
看配置文档,貌似可以ip和domain同时生效的啊
Nameless 大佬有话说 :
Evvj 大佬有话说 : 2020-4-27 14:00
https://www.v2ray.com/chapter_02/03_routing.html
看配置文档,貌似可以ip和domain同时生效的啊 …
那只个格式
再看看这个
https://toutyrater.github.io/basic/routing/notice.html
thank243 大佬有话说 :
策略改成按IP。
Evvj 大佬有话说 :
Nameless 大佬有话说 : 2020-4-27 14:05
那只个格式
再看看这个
感谢大佬,已解决。yc017t