全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 861|回复: 3

求教 VPS 中转 v2ray 配置文件写法

[复制链接]
发表于 2023-1-21 12:28:20 | 显示全部楼层 |阅读模式
想用一个 San Jose 的 VPS 中转下 Toronto 的 VPS(San Jose 线路好很多 ),但是只希望其中几个 GeoIP 分流到 Toronto,好奇出站规则应该怎么写

Toronto 的 VPS 上是 vmess+ws+tls,只是不会写 San Jose VPS 上的出站规则,求教。

发表于 2023-1-21 12:38:02 来自手机 | 显示全部楼层
添加 outbounce,通过geosite分流是比较简单的
发表于 2023-1-21 14:15:32 来自手机 | 显示全部楼层
v2也是lz发的吗
发表于 2023-1-21 14:20:42 | 显示全部楼层
{
  "api": {
    "services": [
      "HandlerService",
      "LoggerService",
      "StatsService"
    ],
    "tag": "api"
  },
  "inbounds": [
    {
      "listen": "127.0.0.1",
      "port": 62789,
      "protocol": "dokodemo-door",
      "settings": {
        "address": "127.0.0.1"
      },
      "tag": "api"
    }
  ],
  "outbounds": [
    {
      "protocol": "freedom",
      "settings": {}
    },
    {
      "protocol": "blackhole",
      "settings": {},
      "tag": "blocked"
    },
    {
      "tag": "zhuanfa",
      "protocol": "vmess",
      "streamSettings": {
        "network": "ws",
        "security": "tls",
        "tlsSettings": {
          "allowInsecure": false
        },
        "wsSettings": {
          "path": "ws"
        }
      },
      "mux": {
        "enabled": true,
        "concurrency": 8
      },
      "settings": {
        "vnext": [
          {
            "address": "yourip",
            "port": 443,
            "users": [
              {
                "id": "",
                "security": "auto",
                "alterId": 0
              }
            ]
          }
        ]
      }
    }   
  ],
  "policy": {
    "system": {
      "statsInboundDownlink": true,
      "statsInboundUplink": true
    }
  },
  "routing": {
    "rules": [
      {
        "inboundTag": [
          "api"
        ],
        "outboundTag": "api",
        "type": "field"
      },
      {
        "ip": [
          "geoip:private"
        ],
        "outboundTag": "blocked",
        "type": "field"
      },
      {
        "outboundTag": "blocked",
        "protocol": [
          "bittorrent"
        ],
        "type": "field"
      },
      {
        "type": "field",
        "outboundTag": "zhuanfa",
        "domain": ["geosite:netflix"]
      }     
    ]
  },
  "stats": {}
}

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-5-7 05:26 , Processed in 0.057320 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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