给V2ray配置inboundDetour
hyui 6/10/2019 linuxv2ray
可以使用剩余配置入口,在config.json中可以同时使用inbound和inboundDetour,inbound是主配置入口,inboundDetour是剩余配置入口。
{
"log" : {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "info"
},
"inbound": {
"port": {port},
"listen": "127.0.0.1",
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "{UUID}",
"level": 1,
"alterId": 100,
"security": "none"
}
]
},
"streamSettings": {
"network": "ws",
"security": "auto",
"wsSettings": {
"path": "/"
}
}
},
"inboundDetour": [
{
"port": {port},
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "{UUID}",
"level": 1,
"alterId": 100,
"email": "email@example.com"
}
]
},
"streamSettings": {
"network": "mkcp",
"kcpSettings": {
"mtu": 1350,
"tti": 20,
"uplinkCapacity":10,
"downlinkCapacity": 100,
"congestion": false,
"readBufferSize": 2,
"writeBufferSize": 2,
"header": {
"type": "utp",
"request": null,
"response": null
}
}
}
}
],
"outbound": {
"protocol": "freedom",
"settings": {}
}
}
inbound中之前讲过,不做赘述,把port和UUID填写上就可以 在inboundDetour配置中又配置了一个mkcp的协议,这样是可行的,同样补全port和UUID就可以了