1. Same LAN address (private address) should go to the "direct" path.
2. Mainland China website hostname should go to the "direct" path.
3. Mainland China IP address should go to the "direct" path.
4. Otherwise go to the proxy path. (By default, it will go to the first outbound if the tag is not specified)
the "routing" object contains:
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"type": "field",
"ip": ["geoip:private"],
"outboundTag": "direct"
},
{
"type": "field",
"domain": [ "geosite:cn"],
"outboundTag": "direct"
},
{
"type": "field",
"ip": ["geoip:cn"],
"outboundTag": "direct"
}
]
}
複製代碼
.作者: 角色 時間: 2019-2-23 23:27
整个VN1的configuration file,config.json contains
{
"inbounds": [
{
"port": 1081,
"protocol": "socks"
}
],
"outbounds": [
{
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "VN2 IP address or hostname",
"port": 10086,
"users": [
{"id": "UUID" }
]
}
]
}
},
{
"protocol": "freedom",
"tag": "direct",
"settings": {}
}
],
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"type": "field",
"ip": ["geoip:private"],
"outboundTag": "direct"
},
{
"type": "field",
"domain": [ "geosite:cn"],
"outboundTag": "direct"
},
{
"type": "field",
"ip": ["geoip:cn"],
"outboundTag": "direct"
}
]
}
}
複製代碼
作者: 角色 時間: 2019-2-24 00:02
测试结果:
With additional outbound "direct" and routing object, the performance tests are as follows:
1. private LAN NAS can be reachable.
2. Youtube, Facebook can be reachable
3. CCTV5 and 爱奇艺 can be watched smoothly
Both CCTV5/爱奇艺 and YouTube/Facebook can be watched simultaneously.作者: 角色 時間: 2019-2-25 09:06