Jireh程序猿的那些事 Jireh程序猿的那些事

记录分享生活、程序、信息的精彩人生

目录
v2ray转发mtp配置
/  

v2ray转发mtp配置

{
  "policy": {
    "levels": {
      "0": {
        "uplinkOnly": 0
      }
    }
  },
  "dns": {
    "servers": [
      "1.1.1.1"
    ]
  },
  "outboundDetour": [
    {
      "tag": "tg-out",
      "protocol": "mtproto",
      "settings": {},
      "proxySettings": {
        "tag": "v2-out"
      }
    }
  ],
  "inbound": {
    "tag": "tg-in",
    "port": 56789,//这个是MTP代理的端口
    "protocol": "mtproto",
    "settings": {
      "users": [
        {
          "secret": "ed2da9d2251cbb4835f18659780cc126"//这个是mtp代理的密码,格式是32位的使用阿拉伯数字和字母abcdef组成的密码
        }
      ]
    }
  },
  "log": {
    "loglevel": "debug"
  },
  "routing": {
    "strategy": "rules",
    "settings": {
      "domainStrategy": "IPIfNonMatch",
      "rules": [
        {
          "type": "field",
          "inboundTag": [
            "tg-in"
          ],
          "outboundTag": "tg-out"
        }
      ]
    }
  },
  "outbound": {
    "tag":"v2-out",
    "sendThrough": "0.0.0.0",
    "mux": {
      "enabled": false,
      "concurrency": 8
    },
    "protocol": "vmess",
    "settings": {
      "vnext": [
        {
          "address": "xxxxxxxxxxxxxx",//v2ray服务器的地址
          "port": 443,//v2ray服务器的端口
          "users": [
            {
              "id": "abc6cd5b-30dc-4ad4-aad0-d575308b9a20",//你的uuid
              "alterId": 2,
              "security": "auto",
              "level": 2
            }
          ],
          "remark": "NodeName"
        }
      ]
    },
    "streamSettings": { 
                "network": "ws", 
                "security": "tls", 
                "tlsSettings": { 
                    "serverName": "xxxxxxxx" 
                }, 
                "wsSettings": { 
                    "path": "/xxxxx", 
                    "headers": { 
                        "Host": "xxxxxxxx" 
                    } 
                } 
            }, 
            "mux": { 
                "enabled": true 
            } 
  }
}

如果觉得这篇文章不错的话,请我喝一杯 咖啡☕吧
标题:v2ray转发mtp配置
作者:Jireh
地址:http://jireh.xyz/articles/2020/09/27/1601168576136.html
本作品由 Jireh 采用 署名 – 非商业性使用 – 禁止演绎 4.0 国际许可协议进行许可,转载请注明出处。