vmess协议配置

这东西就像个管道可以一层套一层一层套一层,还是很有意思的
服务端

{
  "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"
      }
    ]
  }
}

客户端

{
  "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"
    }]
  }
}

你可能感兴趣的:(网络安全,linux,服务器,网络)