Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

大量可疑流量 #2412

Closed
samuelduann opened this issue Apr 5, 2020 · 1 comment
Closed

大量可疑流量 #2412

samuelduann opened this issue Apr 5, 2020 · 1 comment

Comments

@samuelduann
Copy link

提交 Issue 之前请先阅读 Issue 指引,然后回答下面的问题,谢谢。
除非特殊情况,请完整填写所有问题。不按模板发的 issue 将直接被关闭。
如果你遇到的问题不是 V2Ray 的 bug,比如你不清楚要如何配置,请使用Discussion进行讨论。

  1. 你正在使用哪个版本的 V2Ray?(如果服务器和客户端使用了不同版本,请注明)
    V2Ray 4.18.0 (Po) 20190228

  2. 你的使用场景是什么?比如使用 Chrome 通过 Socks/VMess 代理观看 YouTube 视频。
    路由器透明代理

  3. 你看到的不正常的现象是什么?(请描述具体现象,比如访问超时,TLS 证书错误等)

  • 接入的设备的网络全部空闲的时候,路由器上的v2ray还在持续消耗大量上行/下行带宽(900KB/400KB)
  • 查看v2ray日志,发现大量如下格式的日志:
    2020/04/05 04:47:26 tcp:116.203.156.238:58893 accepted tcp:77.75.79.170:993
  1. 你期待看到的正确表现是怎样的?
    在接入设备空闲的时候,带宽占用应该小于100KB/s

  2. 请附上你的配置(提交 Issue 前请隐藏服务器端IP地址)。

服务器端配置:

{
  "inbound": {
    "port": 38051,
    "listen":"127.0.0.1",
    "protocol": "vmess",
    "settings": {
      "clients": [
        {
          "id": "",
          "level": 1,
          "alterId": 64
        }
      ]
    },
    "streamSettings": {
      "network": "ws",
      "wsSettings": {
        "path": "/v2ray"
      }
    }
  },
  "outbound": {
    "protocol": "freedom",
    "settings": {}
  }
}

客户端配置:

{
  "dns" : {
    "servers" : [
      "localhost"
    ]
  },
  "inboundDetour": [{
    "protocol": "dokodemo-door",
    "listen": "0.0.0.0",
    "port": 8081,
    "domainOverride": ["tls", "http"],
    "settings": {
      "network": "tcp, udp",
      "followRedirect": true
    },
    "tag": "forwardingport"
  }],
  "inbounds" : [
    {
      "listen" : "0.0.0.0",
      "port" : 1081,
      "protocol" : "socks",
      "tag" : "socksinbound",
      "settings" : {
        "auth" : "noauth",
        "udp" : false,
        "ip" : "127.0.0.1"
      }
    },
    {
      "listen" : "127.0.0.1",
      "port" : 8001,
      "protocol" : "http",
      "tag" : "httpinbound",
      "settings" : {
        "timeout" : 0
      }
    }
  ],
  "outbounds" : [
    {
      "tag" : "direct",
      "protocol" : "freedom",
      "settings" : {

      }
    },
    {
      "sendThrough" : "0.0.0.0",
      "mux" : {
        "enabled" : false,
        "concurrency" : 8
      },
      "protocol" : "vmess",
      "settings" : {
        "vnext" : [
          {
            "address" : "",
            "users" : [
              {
                "id" : "",
                "alterId" : 64,
                "security" : "auto",
                "level" : 1
              }
            ],
            "port" : 443
          }
        ]
      },
      "tag" : "cf-ws-v2ray-new",
      "streamSettings" : {
        "wsSettings" : {
          "path" : "\/v2",
          "headers" : {

          }
        },
        "quicSettings" : {
          "key" : "",
          "header" : {
            "type" : "none"
          },
          "security" : "none"
        },
        "tlsSettings" : {
          "allowInsecure" : true,
          "alpn" : [
            "http\/1.1"
          ],
          "serverName" : "",
          "allowInsecureCiphers" : true
        },
        "httpSettings" : {
          "path" : ""
        },
        "kcpSettings" : {
          "header" : {
            "type" : "none"
          },
          "mtu" : 1350,
          "congestion" : false,
          "tti" : 20,
          "uplinkCapacity" : 5,
          "writeBufferSize" : 1,
          "readBufferSize" : 1,
          "downlinkCapacity" : 20
        },
        "tcpSettings" : {
          "header" : {
            "type" : "none"
          }
        },
        "security" : "tls",
        "network" : "ws"
      }
    }
  ],
  "routing" : {
    "name" : "bypasscn_private_apple",
    "domainStrategy" : "AsIs",
    "rules" : [
      {
        "type" : "field",
        "outboundTag" : "direct",
        "domain" : [
          "localhost",
          "domain:icloud.com",
          "domain:apple.com",
          "geosite:cn"
        ],
        "ip" : [
          "geoip:private",
          "geoip:cn"
        ]
      },
      {
        "type" : "field",
        "outboundTag" : "ws-v2ray",
        "port" : "0-65535"
      }
    ]
  },
  "log" : {
    "loglevel" : "info"
  }
}
  1. 请附上出错时软件输出的错误日志。在 Linux 中,日志通常在 /var/log/v2ray/error.log 文件中。

服务器端错误日志:

    // 在这里附上服务器端日志

客户端错误日志:

    // 在这里附上客户端日志
  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

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

@kslr kslr added the Need Logs label Apr 5, 2020
@violarulan
Copy link

其它 issue 有类似情况,浏览器已关闭,客户端停止走流量,服务端还在疯狂接收再发送,持续几十秒数分钟不等…

线路质量好点,并且流量加大,比如跑个 speedtest 很容易触发

他们的解决方法是关掉 mux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants