v2ray / v2ray-core

A platform for building proxies to bypass network restrictions.
https://www.v2ray.com/
MIT License
45.47k stars 8.96k forks source link

SSTAP前置代理游戏一段时间后延迟暴涨 #1226

Closed bakamosokyo closed 6 years ago

bakamosokyo commented 6 years ago

1) 你正在使用哪个版本的 V2Ray?(如果服务器和客户端使用了不同版本,请注明) 3.34 Core 2.13 V2rayN SSTAP 1.1.0.1 2) 你的使用场景是什么?比如使用 Chrome 通过 Socks/VMess 代理观看 YouTube 视频。 SSTAP代理游戏,准确来说是Warthunder 使用的是Vmess协议 3) 你看到的不正常的现象是什么?(请描述具体现象,比如访问超时,TLS 证书错误等) 在战斗开始约20分钟后延迟爆炸,800ms的延迟使游戏几乎无法进行。注意了,仅仅在这局游戏内延迟爆炸,同时用作普通代理没有任何问题。换成SSR就没有这种情况。然而SSR开了没几天就TCP被炸,而且只有开了混淆的被炸。 尝试过关闭动态端口,header设置为None,切换为TCP协议,并没有用 如果需要的话,我可以把所有试过的配置发出来 4) 你期待看到的正确表现是怎样的? 能够稳定加速游戏 5) 请附上你的配置(提交 Issue 前请隐藏服务器端IP地址)。

服务器端配置:
    // {
  "log": {
    "access": "",
    "error": "",
    "loglevel": ""
  },
  "inbound": {
    "port": 12585,
    "listen": null,
    "protocol": "vmess", 
    "settings": {
      "auth": null,
      "udp": false,
      "ip": null,
      "clients": [
        {
          "id": "", 
          "alterId": 32, 
          "email": "t@t.tt",
          "security": null
        }
      ]
    },
    "streamSettings": {
      "network": "kcp",
      "security": "",
      "tlsSettings": null,
      "tcpSettings": null,
      "kcpSettings": {
        "mtu": 1350,
        "tti": 20,
        "uplinkCapacity": 24, 
        "downlinkCapacity": 100,
        "congestion": false,
        "readBufferSize": 2, 
        "writeBufferSize": 2, 
        "header": {
          "type": "dtls",
          "request": null,
          "response": null
        }
      },
      "wsSettings": null,
      "httpSettings": null
    }
  },
  "outbound": {
    "tag": null,
    "protocol": "freedom",
    "settings": null,
    "streamSettings": null,
    "mux": null
  },
  "inboundDetour": [
    {
      "protocol": "vmess",
      "port": "10000-15000", 
      "tag": "dynamicPort",       
      "settings": {
        "default": {
          "level": 1,
          "alterId": 32
        }
      },
      "allocate": {            
        "strategy": "random",  
        "concurrency": 1,      
        "refresh": 5          
      },
      "streamSettings": {
        "network": "kcp"
      }
    }
  ]
},
  "outboundDetour": [
    {
      "protocol": "blackhole",
      "settings": null,
      "tag": "blocked"
    }
  ],
  "dns": null,
  "routing": {
    "strategy": "rules",
    "settings": {
      "domainStrategy": null,
      "rules": [
        {
          "type": "field",
          "port": null,
          "outboundTag": "blocked",
          "ip": [
            "0.0.0.0/8",
            "10.0.0.0/8",
            "100.64.0.0/10",
            "127.0.0.0/8",
            "169.254.0.0/16",
            "172.16.0.0/12",
            "192.0.0.0/24",
            "192.0.2.0/24",
            "192.168.0.0/16",
            "198.18.0.0/15",
            "198.51.100.0/24",
            "203.0.113.0/24",
            "::1/128",
            "fc00::/7",
            "fe80::/10"
          ],
          "domain": null
        }
      ]
    }
  }
}
客户端配置:
    //{
  "log": {
    "access": "",
    "error": "",
    "loglevel": "warning"
  },
  "inbound": {
    "port": 1080,
    "listen": "0.0.0.0",
    "protocol": "socks",
    "settings": {
      "auth": "noauth",
      "udp": true,
      "ip": "127.0.0.1",
      "clients": null
    },
    "streamSettings": null
  },
  "outbound": {
    "tag": "agentout",
    "protocol": "vmess",
    "settings": {
      "vnext": [
        {
          "address": "",
          "port": 12585,
          "users": [
            {
              "id": "",
              "alterId": 32,
              "email": "t@t.tt",
              "security": "aes-128-gcm"
            }
          ]
        }
      ],
      "servers": null
    },
    "streamSettings": {
      "network": "kcp",
      "security": "",
      "tlsSettings": null,
      "tcpSettings": null,
      "kcpSettings": {
        "mtu": 1350,
        "tti": 20,
        "uplinkCapacity": 12,
        "downlinkCapacity": 100,
        "congestion": false,
        "readBufferSize": 2,
        "writeBufferSize": 2,
        "header": {
          "type": "dtls",
          "request": null,
          "response": null
        }
      },
      "wsSettings": null,
      "httpSettings": null
    },
    "mux": {
      "enabled": false
    }
  },
  "inboundDetour": null,
  "outboundDetour": [
    {
      "protocol": "freedom",
      "settings": {
        "response": null
      },
      "tag": "direct"
    },
    {
      "protocol": "blackhole",
      "settings": {
        "response": {
          "type": "http"
        }
      },
      "tag": "blockout"
    }
  ],
  "dns": {
    "servers": [
      "8.8.8.8",
      "localhost"
    ]
  },
  "routing": {
    "strategy": "rules",
    "settings": {
      "domainStrategy": "IPIfNonMatch",
      "rules": [
        {
          "type": "field",
          "port": null,
          "outboundTag": "direct",
          "ip": null,
          "domain": [
            "geosite:cn"
          ]
        },
        {
          "type": "field",
          "port": null,
          "outboundTag": "direct",
          "ip": [
            "0.0.0.0/8",
            "10.0.0.0/8",
            "100.64.0.0/10",
            "127.0.0.0/8",
            "169.254.0.0/16",
            "172.16.0.0/12",
            "192.0.0.0/24",
            "192.0.2.0/24",
            "192.168.0.0/16",
            "198.18.0.0/15",
            "198.51.100.0/24",
            "203.0.113.0/24",
            "::1/128",
            "fc00::/7",
            "fe80::/10"
          ],
          "domain": null
        }
      ]
    }
  }
}

6) 请附上出错时软件输出的错误日志。在 Linux 中,日志通常在 /var/log/v2ray/error.log 文件中。

服务器端错误日志:
    // 只有V2ray started,不发了
客户端错误日志:
    // --------------------------------處理序已經結束,因此無法取得其所要求的資訊。[04:44:34]--------------------------------
System.InvalidOperationException: 處理序已經結束,因此無法取得其所要求的資訊。
   於 System.Diagnostics.Process.EnsureState(State state)
   於 System.Diagnostics.Process.get_MainWindowHandle()
   於 System.Diagnostics.Process.CloseMainWindow()
   於 v2rayN.HttpProxyHandler.PrivoxyHandler.KillProcess(Process p)

--------------------------------info[06:52:25]--------------------------------
System.Exception: v2rayN start up

--------------------------------info[06:56:24]--------------------------------
System.Exception: v2rayN start up

--------------------------------info[06:57:53]--------------------------------
System.Exception: v2rayN start up

--------------------------------info[18:13:22]--------------------------------
System.Exception: v2rayN start up

--------------------------------info[20:09:58]--------------------------------
System.Exception: v2rayN start up

大部分日志只有V2ray startup,剩下的都跟上面一样 7) 请附上访问日志。在 Linux 中,日志通常在 /var/log/v2ray/access.log 文件中。

    // 没有这个文件

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

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

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

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

通常的命令为 journalctl -u v2ray

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

如果你已经填完上面的问卷,请把下面的英文部份删除,再提交 Issue。

Mrhoho commented 4 years ago

一样的情况,游戏开始正常,一会延迟暴涨,请问解决了吗