Skip to content

Instantly share code, notes, and snippets.

@RicherMans
Created January 26, 2020 03:43
Show Gist options
  • Save RicherMans/045dc87b4ed5293776e34ce4f15ec880 to your computer and use it in GitHub Desktop.
Save RicherMans/045dc87b4ed5293776e34ce4f15ec880 to your computer and use it in GitHub Desktop.
v2ray server config
{
"log": {
"loglevel": "warning", // 日志级别
"access": "/var/log/v2ray/v2ray_access.log",
"error": "/var/log/v2ray/v2ray_error.log"
},
"inbound": {
"port": 41335, // 服务器监听端口,必须和上面的一样
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "bbbbbbbbbbbbbbbbbbbb",
"alterId": 64
},
{
"id" :"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"alterId": 331
}
],
"detour":{
"to":"dynamicPort"
}
},
"streamSettings": {
"network": "kcp"
}
},
"inboundDetour":[
{
"protocol": "vmess",
"port": "41336-60031", // 端口范围
"tag": "dynamicPort",
"settings": {
"default": {
"level": 1,
"alterId": 32
}
},
"allocate": { // 分配模式
"strategy": "random", // 随机开启
"concurrency": 2, // 同时开放两个端口
"refresh": 5 // 每三分钟刷新一次
},
"streamSettings":{
"network":"kcp"
}
}
],
"outbound": {
"protocol": "freedom",
"settings": {
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment