xray 客户端配置

xray_client_ws

{
    "log": {
      "access": "//home/echoxu/Programe/Qv2ray/Xray-linux-64/-access.log",
      "error": "//home/echoxu/Programe/Qv2ray/Xray-linux-64/-error.log",
      "loglevel": "warning"
    },
  
    "dns": {
      "servers": [
        {
          "address": "1.1.1.1",
          "domains": ["geosite:geolocation-!cn"]
        },
        {
          "address": "223.5.5.5",
          "domains": ["geosite:cn"],
          "expectIPs": ["geoip:cn"]
        },
        {
          "address": "114.114.114.114",
          "domains": ["geosite:cn"]
        },
        "localhost"
      ]
    },
  
    "routing": {
      "domainStrategy": "IPIfNonMatch",
      "rules": [
        {
          "type": "field",
          "domain": ["geosite:category-ads-all"],
          "outboundTag": "block"
        },
        {
          "type": "field",
          "domain": ["geosite:cn"],
          "outboundTag": "direct"
        },
        {
          "type": "field",
          "ip": ["geoip:cn", "geoip:private"],
          "outboundTag": "direct"
        },
        {
          "type": "field",
          "domain": ["geosite:geolocation-!cn"],
          "outboundTag": "proxy"
        },
        {
          "type": "field",
          "ip": ["223.5.5.5"],
          "outboundTag": "direct"
        }
      ]
    },
  
    "inbounds": [
      {
        "tag": "socks-in",
        "protocol": "socks",
        "listen": "127.0.0.1",
        "port": 1089,
        "settings": {
          "udp": true
        }
      },
      {
        "tag": "http-in",
        "protocol": "http",
        "listen": "127.0.0.1",
        "port": 8889
      }
    ],
  
    "outbounds": [
        {
            "protocol": "vless",
            "settings": {
                "vnext": [
                    {
                        "address": "api.echoxu.cn",
                        "port": 443,
                        "users": [
                            {
                                "id": "uuiduuid-uuid-uuid-uuid-uuiduuiduuid",
                                "encryption": "none",
                                "level": 0
                            }
                        ]
                    }
                ]
            },
            "streamSettings": {
                "network": "ws",
                "security": "tls",
                "tlsSettings": {
                    "serverName": "api.echoxu.cn"
                },
                "wsSettings": {
                    "path": "/wsgooutsidewithvmess520"
                }
            }
        },
      {
        "tag": "direct",
        "protocol": "freedom"
      },
      {
        "tag": "block",
        "protocol": "blackhole"
      }
    ]
  }

xray_client_xtls

{
    "log": {
      "access": "//home/echoxu/Programe/Qv2ray/Xray-linux-64/-access.log",
      "error": "//home/echoxu/Programe/Qv2ray/Xray-linux-64/-error.log",
      "loglevel": "warning"
    },
  
    "dns": {
      "servers": [
        {
          "address": "1.1.1.1",
          "domains": ["geosite:geolocation-!cn"]
        },
        {
          "address": "223.5.5.5",
          "domains": ["geosite:cn"],
          "expectIPs": ["geoip:cn"]
        },
        {
          "address": "114.114.114.114",
          "domains": ["geosite:cn"]
        },
        "localhost"
      ]
    },
  
    "routing": {
      "domainStrategy": "IPIfNonMatch",
      "rules": [
        {
          "type": "field",
          "domain": ["geosite:category-ads-all"],
          "outboundTag": "block"
        },
        {
          "type": "field",
          "domain": ["geosite:cn"],
          "outboundTag": "direct"
        },
        {
          "type": "field",
          "ip": ["geoip:cn", "geoip:private"],
          "outboundTag": "direct"
        },
        {
          "type": "field",
          "domain": ["geosite:geolocation-!cn"],
          "outboundTag": "proxy"
        },
        {
          "type": "field",
          "ip": ["223.5.5.5"],
          "outboundTag": "direct"
        }
      ]
    },
  
    "inbounds": [
      {
        "tag": "socks-in",
        "protocol": "socks",
        "listen": "127.0.0.1",
        "port": 1089,
        "settings": {
          "udp": true
        }
      },
      {
        "tag": "http-in",
        "protocol": "http",
        "listen": "127.0.0.1",
        "port": 8889
      }
    ],
  
    "outbounds": [
      {
        "tag": "proxy",
        "protocol": "vless",
        "settings": {
          "vnext": [
            {
              "address": "api.echoxu.cn",
              "port": 443,
              "users": [
                {
                  "id": "uuiduuid-uuid-uuid-uuid-uuiduuiduuid",
                  "flow": "xtls-rprx-splice",
                  "encryption": "none",
                  "level": 0
                }
              ]
            }
          ]
        },
        "streamSettings": {
          "network": "tcp",
          "security": "xtls",
          "xtlsSettings": {
            "serverName": "api.echoxu.cn",
            "allowInsecure": false
          }
        }
      },
      {
        "tag": "direct",
        "protocol": "freedom"
      },
      {
        "tag": "block",
        "protocol": "blackhole"
      }
    ]
  }
上次更新:
贡献者: iEchoxu