v2ray-config-text/sock_outVmess_in.md

2.6 KiB

socks多个出vmess多个入

{
    "inbounds": [
      {
        "port": 9002,
        "listen": "0.0.0.0",
        "protocol": "vmess",
        "settings": {
          "clients": [
            {
              "id": "2ee57806-f6e4-482a-ef08-7360c04cd3e5",
              "alterId": 64
            }
          ]
        },
        "streamSettings": {
          "network": "ws",
          "security": "none",
          "wsSettings": {
            "path": "/",
            "headers": {}
          }
        },
        "tag": "vmess1",
        "sniffing": {
          "enabled": true,
          "destOverride": [
            "http",
            "tls"
          ]
        }
      },
      {
        "port": 9003,
        "listen": "0.0.0.0",
        "protocol": "vmess",
        "settings": {
          "clients": [
            {
              "id": "2ee57806-f6e4-482a-ef08-7360c04cd3e5",
              "alterId": 64
            }
          ]
        },
        "streamSettings": {
          "network": "ws",
          "security": "none",
          "wsSettings": {
            "path": "/",
            "headers": {}
          }
        },
        "tag": "vmess2",
        "sniffing": {
          "enabled": true,
          "destOverride": [
            "http",
            "tls"
          ]
        }
      }
    ],
    "outbounds": [
      {
        "protocol": "socks",
        "settings": {
          "servers": [
            {
              "address": "34.125.84.146",
              "port": 2222,
              "users": [
                {
                  "user": "us",
                  "pass": "us"
                }
              ]
            }
          ]
        },
        "tag": "socks1"
      },
      {
        "protocol": "socks",
        "settings": {
          "servers": [
            {
              "address": "34.125.252.181",
              "port": 3333,
              "users": [
                {
                  "user": "936",
                  "pass": "936"
                }
              ]
            }
          ]
        },
        "tag": "socks2"
      },
      {
        "protocol": "blackhole",
        "settings": {},
        "tag": "blocked"
      }
    ],
    "routing": {
      "rules": [
        {
          "type": "field",
          "inboundTag": [
            "vmess1"
          ],
          "outboundTag": "socks1"
        },
        {
          "type": "field",
          "inboundTag": [
            "vmess2"
          ],
          "outboundTag": "socks2"
        }
      ]
    }
  }