全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

IP归属甄别会员请立即修改密码
查看: 1789|回复: 18
打印 上一主题 下一主题

20元求一份v2ray服务端配置。(已解决)

[复制链接]
跳转到指定楼层
1#
发表于 2023-3-31 19:33:17 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 mujj 于 2023-3-31 20:46 编辑

国内服务器需要以下配置。(被中转的v2服务器也是同样的配置)
额外ID:0
加密方式:auto
传输协议:tcp
伪装类型:http
不启用tls

然后中转另一个国外v2ray服务器,并进行国内外ip分流。
国内ip直接连接,
国外ip通过中转的v2服务器连接。

自建只会用x-ui或者一键脚本。
问了chatGPT,也不行。
给个参考地址:https://toutyrater.github.io/advanced/vps_relay.html
这个也是试过了,不行。

===========================================
搞定了,给所有用家宽免流的MJJ。
  1. {
  2.   "log": {
  3.     "loglevel": "warning"
  4.   },
  5.   "inbounds": [//国内服务器配置
  6.     {
  7.       "listen": "0.0.0.0",  //0.0.0.0 不用动
  8.       "port": 3602,  //国内端口
  9.       "protocol": "vmess",
  10.       "settings": {
  11.         "clients": [
  12.           {
  13.             "id": "7baea154-fe59-45b2-f2fc-c9ce21a9fbd4",
  14.             "alterId": 0
  15.           }
  16.         ],
  17.         "disableInsecureEncryption": false
  18.       },
  19.       "streamSettings": {
  20.         "network": "tcp",
  21.         "security": "none",
  22.         "tcpSettings": {
  23.           "header": {
  24.             "type": "http",
  25.             "request": {
  26.               "method": "GET",
  27.               "path": [
  28.                 "/"
  29.               ],
  30.               "headers": {}
  31.             },
  32.             "response": {
  33.               "version": "1.1",
  34.               "status": "200",
  35.               "reason": "OK",
  36.               "headers": {}
  37.             }
  38.           }
  39.         }
  40.       },
  41.       "tag": "inbound-1",
  42.       "sniffing": {
  43.         "enabled": true,
  44.         "destOverride": [
  45.           "http",
  46.           "tls"
  47.         ]
  48.       }
  49.     }
  50.     ],
  51.   "outbounds": [
  52.     //国外服务器
  53.     {
  54.       "tag": "proxy",
  55.       "protocol": "vmess",
  56.       "settings": {
  57.         "vnext": [
  58.           {
  59.             "address": "43.0.0.0", //国外ip
  60.             "port": 3603,   //国外端口
  61.             "users": [
  62.               {
  63.                 "id": "7baea154-fe59-45b2-f2fc-c9ce21a9fbd4",
  64.                 "alterId": 0,
  65.                 "email": "[email protected]",
  66.                 "security": "auto"
  67.               }
  68.             ]
  69.           }
  70.         ]
  71.       },
  72.       "streamSettings": {
  73.         "network": "tcp",
  74.         "tcpSettings": {
  75.           "header": {
  76.             "type": "http",
  77.             "request": {
  78.               "version": "1.1",
  79.               "method": "GET",
  80.               "path": [
  81.                 "/"
  82.               ],
  83.               "headers": {
  84.                 "Host": [
  85.                   ""
  86.                 ],
  87.                 "User-Agent": [
  88.                   ""
  89.                 ],
  90.                 "Accept-Encoding": [
  91.                   "gzip, deflate"
  92.                 ],
  93.                 "Connection": [
  94.                   "keep-alive"
  95.                 ],
  96.                 "Pragma": "no-cache"
  97.               }
  98.             }
  99.           }
  100.         }
  101.       },
  102.       "mux": {
  103.         "enabled": true,
  104.         "concurrency": 8
  105.       }
  106.     },
  107.     {
  108.       "tag": "direct",
  109.       "protocol": "freedom",
  110.       "settings": {}
  111.     },
  112.     {
  113.       "tag": "blocked",
  114.       "protocol": "blackhole",
  115.       "settings": {}
  116.     }
  117.   ],
  118.   "routing": {
  119.     "domainStrategy": "IPIfNonMatch",
  120.     "rules": [
  121.       {
  122.         "type": "field",
  123.         "outboundTag": "direct",
  124.         "domain": [
  125.           "geosite:cn" //直连国内域名
  126.         ],
  127.         "enabled": true
  128.       },
  129.       {
  130.         "type": "field",
  131.         "outboundTag": "direct",
  132.         "ip": [
  133.           "geoip:cn" //直连国内ip
  134.         ],
  135.         "enabled": true
  136.       },
  137.       {
  138.         "type": "field",
  139.         "ip": [
  140.           "geoip:private"
  141.         ],
  142.         "outboundTag": "blocked"
  143.       }
  144.     ]
  145.   }
  146. }
复制代码
推荐
发表于 2023-3-31 19:58:51 来自手机 | 只看该作者
三不 发表于 2023-3-31 19:34
弄好了,麻烦发一份给我



拿去。刚回复楼主没想到有大佬搞好了。发出来mjj用吧。这是我几年前玩过的。
https://alist.wej.cc/OneDrive/%E5%85%8D%E6%B5%81/%E5%9B%BD%E5%86%85%E5%A4%96%E5%88%86%E6%B5%81.config.json

点评

热心大佬,点赞  发表于 2023-3-31 20:31
匿名
推荐
匿名  发表于 2023-3-31 19:38:15
{
  "inbounds": [
    {
      "port": 1080, // 本地监听端口
      "listen": "127.0.0.1",
      "protocol": "socks", // 支持 socks5 协议
      "settings": {}
    },
    {
      "port": 10086, // 本地监听端口
      "listen": "127.0.0.1",
      "protocol": "http", // 支持 HTTP 协议
      "settings": {}
    }
  ],
  "outbounds": [
    {
      "protocol": "vmess",
      "settings": {
        "vnext": [
          {
            "address": "中转服务器地址", // 中转服务器地址
            "port": 10086, // 中转服务器端口
            "users": [
              {
                "id": "自定义 UUID", // 额外 ID
                "alterId": 0, // 额外 ID 的值
                "security": "auto" // 加密方式
              }
            ]
          }
        ]
      },
      "streamSettings": {
        "network": "tcp", // 传输协议
        "tcpSettings": {
          "header": {
            "type": "http", // 伪装类型
            "request": {
              "version": "1.1",
              "method": "GET",
              "path": ["/"],
              "headers": {
                "Host": ["www.baidu.com"], // 伪装网站的域名
                "User-Agent": ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3"]
              }
            }
          }
        },
        "tlsSettings": {
          "allowInsecure": true // 不启用 tls
        }
      }
    },
    {
      "tag": "direct",
      "protocol": "freedom", // 直连协议
      "settings": {}
    }
  ],
  "routing": {
    "rules": [
      {
        "type": "field",
        "inboundTag": ["socks"], // socks5 入站标签
        "outboundTag": "direct" // 直连出站标签
      },
      {
        "type": "field",
        "ip": ["geoip:private"], // 国内 IP 段
        "outboundTag": "direct" // 直连出站标签
      },
      {
        "type": "field",
        "outboundTag": "proxy" // 代理出站标签
      }
    ]
  }
}
2#
发表于 2023-3-31 19:34:52 | 只看该作者
弄好了,麻烦发一份给我



/**
* --MJJ友情价出t66y_1024论坛邀请码---30出---TG: tiger_9527_t66y_1024_mjj_winner
*
*
*/
3#
发表于 2023-3-31 19:35:38 | 只看该作者
三不 发表于 2023-3-31 19:34
弄好了,麻烦发一份给我

发一份给我
4#
发表于 2023-3-31 19:36:29 | 只看该作者
不得开个20人团购的车?
5#
发表于 2023-3-31 19:36:49 | 只看该作者
你搞鸡毛呢,这需求比脱了裤子放屁还让人不理解,你直接开绕过大陆的规则不就行了
6#
发表于 2023-3-31 19:38:14 来自手机 | 只看该作者
太简单了,tg滴滴我@nkym233
8#
 楼主| 发表于 2023-3-31 19:38:59 | 只看该作者
peiqi 发表于 2023-3-31 19:36
你搞鸡毛呢,这需求比脱了裤子放屁还让人不理解,你直接开绕过大陆的规则不就行了 ...

需要用国内的服务器进行免流。
9#
发表于 2023-3-31 19:39:19 | 只看该作者
daima.eu.org
不申请证书,端口80
10#
发表于 2023-3-31 19:41:33 | 只看该作者
mujj 发表于 2023-3-31 19:38
需要用国内的服务器进行免流。

国外的服务器也可以免流,否则的话你分流了那不就只能免流国内的网站,国外的不能免流了,那你还玩什么免流免一半
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-10-15 00:38 , Processed in 0.108925 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表