v2ray/v2ray-core

v2ray启动多端口,配置一个端口正常代理,一个端口走warp,但系统只有一个端口在监听

madi171 opened this issue · 1 comments

除非特殊情况,请完整填写所有问题。不按模板发的 issue 将直接被关闭。
如果你遇到的问题不是 V2Ray 的 bug,比如你不清楚要如何配置,请使用Discussion进行讨论。

  1. 你正在使用哪个版本的 V2Ray?(如果服务器和客户端使用了不同版本,请注明)
    V2Ray 5.12.1
  2. 你的使用场景是什么?比如使用 Chrome 通过 Socks/VMess 代理观看 YouTube 视频。
    使用 Chrome 通过 Socks/VMess 代理观看 YouTube 视频
  3. 你看到的不正常的现象是什么?(请描述具体现象,比如访问超时,TLS 证书错误等)
    配置了两个端口,但第二个端口没有监听
image
  1. 你期待看到的正确表现是怎样的?
    两个端口都监听,并正常走代理
  2. 请附上你的配置(提交 Issue 前请隐藏服务器端IP地址)。

服务器端配置:

{
  "log": {
    "access": "/var/log/v2ray/access.log",
    "error": "/var/log/v2ray/error.log",
    "loglevel": "debug"
  },
  "dns": {},
  "stats": {},
  "inbounds": [
    {
      "port": 15543,
      "protocol": "vmess",
      "listen": "0.0.0.0",
      "settings": {
        "clients": [
          {
            "id": "a4617e57-b5a8-4e62-8e2b-cb727eddc75f",
            "level": 1,
            "alterId": 0
          }
        ]
      },
      "tag": "in-0",
      "streamSettings": {
        "network": "tcp",
        "tcpSettings": {
        }
      },
      "sniffing": {
        "enabled": true,
        "destOverride": [
          "http",
          "tls"
        ]
      },
      "outboundTag": "cloudflare-warp"
    },
    {
      "port": 15541,
      "protocol": "vmess",
      "listen": "0.0.0.0",
      "settings": {
        "clients": [
          {
            "id": "a4617e57-b5a8-4e62-8e2b-cb727eddc75f",
            "level": 1,
            "alterId": 0
          }
        ]
      },
      "tag": "in-0",
      "streamSettings": {
        "network": "tcp",
        "tcpSettings": {
        }
      },
      "sniffing": {
        "enabled": true,
        "destOverride": [
          "http",
          "tls"
        ]
      }
    }
  ],
  "outbounds": [
    {
      "tag": "direct",
      "protocol": "freedom",
      "settings": {}
    },
    {
      "tag": "blocked",
      "protocol": "blackhole",
      "settings": {}
    },
    {
      "tag": "cloudflare-warp",
      "protocol": "socks",
      "settings": {
         "servers": [{
         "address": "127.0.0.1",
         "port": 34580
        }]
      }
    }
  ],
  "routing": {
    "domainStrategy": "AsIs",
    "rules": [
      {
        "type": "field",
        "outboundTag": "cloudflare-warp",
        "domain": ["domain:openai.com","geosite:netflix"]
      },
      {
        "type": "field",
        "ip": [
          "geoip:private"
        ],
        "outboundTag": "blocked"
      }
    ]
  },
  "policy": {},
  "reverse": {},
  "transport": {}
}

客户端配置:

{
  "host" : "xxx",
  "file" : "",
  "obfsParam" : "",
  "alpn" : "",
  "cert" : "",
  "created" : 1711428822.2884169,
  "updated" : 1711434237.679836,
  "mtu" : "",
  "flag" : "SG",
  "privateKey" : "",
  "hpkp" : "",
  "uuid" : "xxx",
  "type" : "Vmess",
  "downmbps" : "",
  "user" : "",
  "plugin" : "none",
  "method" : "none",
  "data" : "",
  "udp" : 1,
  "filter" : "",
  "protoParam" : "",
  "reserved" : "",
  "alterId" : "0",
  "upmbps" : "",
  "keepalive" : "",
  "port" : "15543",
  "obfs" : "none",
  "dns" : "",
  "publicKey" : "",
  "peer" : "",
  "weight" : 1711428821,
  "ip" : "",
  "title" : "",
  "proto" : "",
  "password" : "xxx",
  "chain" : "",
  "shortId" : ""
}
  1. 请附上出错时软件输出的错误日志。在 Linux 中,日志通常在 /var/log/v2ray/error.log 文件中。

服务器端错误日志:

2024/03/26 14:40:47 [Debug] app/log: Logger started
2024/03/26 14:40:47 [Info] app/dns: DNS: created localhost client
2024/03/26 14:40:47 [Debug] app/dns: using default domain matcher
2024/03/26 14:40:47 [Debug] app/proxyman/inbound: creating stream worker on 0.0.0.0:15541
2024/03/26 14:40:47 [Info] transport/internet/tcp: listening TCP on 0.0.0.0:15541
2024/03/26 14:40:47 [Warning] V2Ray 5.12.1 started

客户端错误日志:

  1. 请附上访问日志。在 Linux 中,日志通常在 /var/log/v2ray/access.log 文件中。

  1. 其它相关的配置文件(如 Nginx)和相关日志。

  2. 如果 V2Ray 无法启动,请附上 --test 输出。

通常的命令为 /usr/bin/v2ray/v2ray --test --config /etc/v2ray/config.json。请按实际情况修改。

  1. 如果 V2Ray 服务运行不正常,请附上 journal 日志。

通常的命令为 journalctl -u v2ray

请预览一下你填的内容再提交。

问题找到了,两个inbound的tag设为一样了……改成不同就好了