v2fly / v2ray-step-by-step

This repo is a fork of ToutyRater/v2ray-guide, we aim to provide a new step-by-step guide of v2ray
https://guide.v2fly.org
Creative Commons Attribution 4.0 International
700 stars 420 forks source link

[feature] 关于反向代理2里的interconn、tunnel、portal的说明 #269

Open feipinxiang opened 1 year ago

feipinxiang commented 1 year ago

关联或新增的页面 / related page

reverse2.md

描述 / description of the feature

B 的配置实例里的rules部分的是两个注释是不是写反了? 如果是回国的话,interconn、tunnel、portal是分别对应国外客户端、国内客户端、中转服务器反代标签么? 这三个单词让我有点混乱,能解释下这三个单词分别代表什么意思么? 如果是回国的话文章里的C是国外端、B是外网服务器、A是国内端对吧?

"routing":{   
    "rules":[  
      {  //路由规则,接收 C 的请求后发给 A
        "type":"field",
        "inboundTag":[  
          "interconn"
        ],
        "outboundTag":"portal"
      },
      {  //路由规则,让 B 能够识别这是 A 主动发起的反向代理连接
        "type":"field",
        "inboundTag":[  
          "tunnel"
        ],
        "domain":[  
          "full:private.cloud.com" // 将指定域名的请求发给 A,如果希望将全部流量发给 A,这里可以不设置域名规则。
        ],
        "outboundTag":"portal"
      }
    ]
  }