国内中转搭建

国内服务器我目前用的是windows

下载服务端软件,把链接中的@改为v2

https://github.com/@fly/@ray-core/releases/tag/v4.31.0

解压后目录结构

 

 

修改config.json内容,客户端到中转服务器未启用tsl,中转服务器到境外启用tsl

修改好配置文件后,点击wv...exe开始转发

{
  "log": {
    "access": "",
    "error": "",
    "loglevel": "warning"
  },
  "inbounds": [
    {
      "port": xxxx,//中转服务器端口号
      "protocol": "vmess",
      "settings": {
        "udp": false,
        "clients": [
          {
            "id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",//中转服务器用户id
            "alterId": 0,
            "email": "t@t.tt"
          }
        ],
        "allowTransparent": false
      },
      "streamSettings": {
        "network": "tcp"
      }
    }
  ],
  "outbounds": [
    {
      "protocol": "vmess", // 出口协议
      "settings": {
        "vnext": [
          {
            "address": "xxxxxxx.com", // 国外服务器地址
            "port": xxxx, // 国外服务器端口
            "users": [
              { "id": "xxxxxxxxxxxxxxxxxxxxxxxxxxx" } // 用户 ID,须与国外服务器端配置相同
            ]
          }
        ]
      },//开启tls
      "streamSettings": {
        "network": "tcp",
        "security": "tls",
        "tlsSettings": {
          "allowInsecure": false
        }
      }

    },
    {
      "protocol": "blackhole",
      "settings": {},
      "tag": "block"
    }
  ],
  "routing": {
    "domainStrategy": "IPIfNonMatch",
    "rules": []
  }
}

 

posted @ 2023-04-22 15:18  奇迹之耀  阅读(234)  评论(0编辑  收藏  举报