zoukankan      html  css  js  c++  java
  • v-2ray桥接配置文件

    {
      "log" : {                                 
        "access": "/var/log/v-2ray/access.log",
        "error": "/var/log/v-2ray/error.log",
        "loglevel": "warning"
      },
      "inbounds": [
        {
          "tag": "tg-in",
          "port": 1234,
          "protocol": "mtproto",    // 入站协议为 VMess
          "settings": {
            "users": [{"secret": "**********************"}]
          }
        },
        {
          "tag": "socks-in",
          "port": 4321,
          "protocol": "socks",
          "settings": {
            "auth": "password",
            "accounts": [
              {
                "user": "****",
                "pass": "****"
              }
            ],
            "udp": true,
            "ip": "127.0.0.1",
            "userLevel": 0
          }
    
        }
      ],
      // ========== BEGIN STEP 1 ==========
      // 国内中转服务器当作国外服务器的“客户端”
      // 国际流量发往国外服务器上
      "outbounds": [
        {
          "tag": "vmess-out",
          "protocol": "vmess",
          "settings": {
            "vnext": [
              {
                "address": "******",
                "port": 443,
                "users": [
                  {
                    "id": "******",
                    "alterId": 233,
                    "email": "t@t.tt",
                    "security": "auto"
                  }
                ]
              }
            ],
            "servers": null,
            "response": null
          },
          "streamSettings": {
            "network": "ws",
            "security": "tls",
            "tlsSettings": {
              "allowInsecure": false,
              "serverName": "******"
            },
            "tcpSettings": null,
            "kcpSettings": null,
            "wsSettings": {
              "connectionReuse": true,
              "path": "/",
              "headers": {
                "Host": "*****"
              }
            },
            "httpSettings": null,
            "quicSettings": null
          },
          "mux": {
            "enabled": true,
            "concurrency": 8
          }
        },
        {
          "tag": "tg-out",
          "protocol": "mtproto",
          "settings": {},
          "proxySettings": {
            "tag": "vmess-out"  // 把 tg-out 的流量由 vmess-out 转发
          }
        },
        {
          "tag": "tag-freedom",
          "protocol": "freedom",
          "settings": {},
          "proxySettings": {
            "tag": "vmess-out"
          }
        }
      ],
      // ========== END STEP 1 ==========
      "routing": { // 路由设置
       "domainStrategy": "IPOnDemand",
        "strategy": "rules",
        "rules": [
          {
            "type": "field",
            "inboundTag": ["tg-in"],
            "outboundTag": "tg-out"
          },
          {
            "type": "field",
            "inboundTag": ["socks-in"],
            "outboundTag": "tag-freedom"
          }
        ]
      }
    }
  • 相关阅读:
    x64 平台开发 Mapxtreme 编译错误
    hdu 4305 Lightning
    Ural 1627 Join(生成树计数)
    poj 2104 Kth Number(可持久化线段树)
    ural 1651 Shortest Subchain
    hdu 4351 Digital root
    hdu 3221 Bruteforce Algorithm
    poj 2892 Tunnel Warfare (Splay Tree instead of Segment Tree)
    hdu 4031 Attack(BIT)
    LightOJ 1277 Looking for a Subsequence
  • 原文地址:https://www.cnblogs.com/roadwide/p/13767004.html
Copyright © 2011-2022 走看看