vmess protocol configuration

This thing is like a pipe that can be layered layer by layer, it is still very interesting
server side

{
    
    
  "inbounds": [{
    
    
    "port": 10086,
    "protocol": "vmess",
    "settings": {
    
    
      "clients": [
        {
    
    
          "id": "xxxxx-xxxx-xxxx-x-xxx-xxxxxxxx", //生成的uuid
          "level": 1,
          "alterId": 64
        }
      ]
    }
  }],
  "outbounds": [{
    
    
    "protocol": "freedom",
    "settings": {
    
    }
  },{
    
    
    "protocol": "blackhole",
    "settings": {
    
    },
    "tag": "blocked"
  }],
  "routing": {
    
    
    "rules": [
      {
    
    
        "type": "field",
        "ip": ["geoip:private"],
        "outboundTag": "blocked"
      }
    ]
  }
}

Client

{
    
    
  "inbounds": [{
    
    
    "port": 60000,  //下一个客户端节点如果式http就配置http协议
    "listen": "0.0.0.0",
    "protocol": "http",
     "users": [
        {
    
    
          "user": "root",
          "pass": "root"
        }
      ]
  }],
  "outbounds": [{
    
          //出口指向你的服务端节点
    "protocol": "vmess",
    "settings": {
    
    
      "vnext": [{
    
    
        "address": "xxx.xxx.xxx.xxx",//服务端ip
        "port": 10086, //服务端端口
        "users": [{
    
     "id": "xxxxxxx-xxxx-xxxx-xxxx-xxxxxx" }]//服务端uuid
      }]
    }
  },{
    
    
    "protocol": "freedom",
    "tag": "direct",
    "settings": {
    
    }
  }],
  "routing": {
    
    
    "domainStrategy": "IPOnDemand",
    "rules": [{
    
    
      "type": "field",
      "ip": ["geoip:private"],
      "outboundTag": "direct"
    }]
  }
}

Guess you like

Origin blog.csdn.net/a807719447/article/details/113838609