Xray最新协议REALITY+解锁Netflix


`{
  "log": {
    "loglevel": "info",
    "access": "/var/log/xray/access.log",
    "error": "/var/log/xray/error.log"
  },
  "api": {
    "tag": "api",
    "services": [
      "HandlerService",
      "LoggerService",
      "StatsService"
    ]
  },
  "stats": {},
  "policy": {
    "levels": {
      "0": {
        "statsUserUplink": true,
        "statsUserDownlink": true
      }
    },
    "system": {
      "statsInboundUplink": true,
      "statsInboundDownlink": true,
      "statsOutboundUplink": true,
      "statsOutboundDownlink": true
    }
  },
  "dns": {
    "servers": [
      "https+local://cloudflare-dns.com/dns-query",
      "1.1.1.1",
      "1.0.0.1",
      "8.8.8.8",
      "8.8.4.4",
      "localhost"
    ]
  },
  "inbounds": [
    {
      "listen": "0.0.0.0",
      "port": 443,
      "protocol": "vless",
      "settings": {
        "clients": [
          {
        "id": "你的UUID",
        "flow": ""
      }
    ],
    "decryption": "none"
  },
  "streamSettings": {
    "network": "h2",
    "security": "reality",
    "realitySettings": {
      "show": true,
      "dest": "hk.trip.com:443(只是例子,自行寻找合适服务器的网站)",
      "xver": 0,
      "maxTimeDiff": 0,
      "minClientVer": "1.8.0",
      "serverNames": [
        "trip.com(只是例子,自行寻找合适服务器的网站)",
        "hk.trip.com(只是例子,自行寻找合适服务器的网站)"
      ],
      "privateKey": "你的私钥",
          "shortIds": [
            "16",
            "1688",
            "168888",
            "16888888",
            "1688888888",
            "168888888888",
            "16888888888888",
            "1688888888888888"
          ]
        }
      },
      "sniffing": {
        "enabled": true,
        "destOverride": [
          "http",
          "tls"
        ]
      }
    }
  ],
  "outbounds": [
    {
      "protocol": "freedom",
      "tag": "direct"
    },
    {
      "protocol": "blackhole",
      "tag": "blocked"
    },
    {
    "tag": "VPS1" , //这里能用别的名称,能和路由中的outboundTag对上即可
    "protocol": "vmess", //协议
    "settings": {
      "vnext": [{
        "address": "1.2.3.4", //ip地址也可填写域名
        "port": 10086, //端口
        "users": [{
          "id": "f0e161c1-b741-475a-f05c-5a9230ef44c8",//id在x-ui增加入站的时候会自动生成
          "security": "auto", //加密 默认auto即可
          "alterId": 0  // 按实际填写
            }]
          }]
        }
      }
  ],
  "routing": {
    "domainStrategy": "IPIfNonMatch",
    "rules": [
      {
        "inboundTag": [
          "api"
        ],
        "outboundTag": "api",
        "type": "field"
      },
      {
        "domain": [
          "domain:iqiyi.com",
          "domain:video.qq.com",
          "domain:youku.com"
        ],
        "type": "field",
        "outboundTag": "blocked"
      },
      {
        "type": "field",
        "ip": [
          "geoip:cn",
          "geoip:private"
        ],
        "outboundTag": "blocked"
      },
      {
        "protocol": [
          "bittorrent"
        ],
        "type": "field",
        "outboundTag": "blocked"
      },
  {
      "outboundTag": "VPS1", //这里能用别的名称,能和出站中的Tag对上即可
      "domain": ["geosite:netflix","nflxvideo.net","nflxext.com","nflxso.net"] // netflix 走 VPS1
}  
    ]
  }
}`



发表回复