XrayR-project / XrayR

A Xray backend framework that can easily support many panels. 一个基于Xray的后端框架,支持V2ay,Trojan,Shadowsocks协议,极易扩展,支持多面板对接
https://xrayr-project.github.io/XrayR-doc/
Mozilla Public License 2.0
2.06k stars 826 forks source link

SSPanel-UIM 2023.6对接XrayR v0.9.1 Vmess协议 客户端延迟50ms 但是无法科学上网 #597

Closed wans10 closed 7 months ago

wans10 commented 7 months ago

SSPanel-UIM 2023.6对接XrayR v0.9.1 Vmess协议 客户端延迟50ms 但是无法科学上网 求大佬帮忙看看哪里设置有问题?谢谢。

SSPanel-UIM自定义配置

{
  "offset_port_node": "443",
  "host": "www.vmess.xyz",
  "network": "ws",
  "security": "tls",
  "path": "/v2ray"
}

XrayR配置

Log:
  Level: warning # Log level: none, error, warning, info, debug 
  AccessPath: # /etc/XrayR/access.Log
  ErrorPath: # /etc/XrayR/error.log
DnsConfigPath: # /etc/XrayR/dns.json # Path to dns config, check https://xtls.github.io/config/dns.html for help
RouteConfigPath: # /etc/XrayR/route.json # Path to route config, check https://xtls.github.io/config/routing.html for help
InboundConfigPath: # /etc/XrayR/custom_inbound.json # Path to custom inbound config, check https://xtls.github.io/config/inbound.html for help
OutboundConfigPath: # /etc/XrayR/custom_outbound.json # Path to custom outbound config, check https://xtls.github.io/config/outbound.html for help
ConnectionConfig:
  Handshake: 4 # Handshake time limit, Second
  ConnIdle: 30 # Connection idle time limit, Second
  UplinkOnly: 2 # Time limit when the connection downstream is closed, Second
  DownlinkOnly: 4 # Time limit when the connection is closed after the uplink is closed, Second
  BufferSize: 64 # The internal cache size of each connection, kB
Nodes:
  - PanelType: "SSpanel" # Panel type: SSpanel, NewV2board, PMpanel, Proxypanel, V2RaySocks, GoV2Panel
    ApiConfig:
      ApiHost: "https://domain.xyz"
      ApiKey: "_h%M1Fzm^KH0830zq{y|"
      NodeID: 1
      NodeType: V2ray # Node type: V2ray, Shadowsocks, Trojan, Shadowsocks-Plugin
      Timeout: 30 # Timeout for the api request
      EnableVless: false # Enable Vless for V2ray Type
      VlessFlow: "xtls-rprx-vision" # Only support vless
      SpeedLimit: 0 # Mbps, Local settings will replace remote settings, 0 means disable
      DeviceLimit: 0 # Local settings will replace remote settings, 0 means disable
      RuleListPath: # /etc/XrayR/rulelist Path to local rulelist file
      DisableCustomConfig: false # disable custom config for sspanel
    ControllerConfig:
      ListenIP: 0.0.0.0 # IP address you want to listen
      SendIP: 0.0.0.0 # IP address you want to send pacakage
      UpdatePeriodic: 60 # Time to update the nodeinfo, how many sec.
      EnableDNS: false # Use custom DNS config, Please ensure that you set the dns.json well
      DNSType: AsIs # AsIs, UseIP, UseIPv4, UseIPv6, DNS strategy
      EnableProxyProtocol: false # Only works for WebSocket and TCP
      AutoSpeedLimitConfig:
        Limit: 0 # Warned speed. Set to 0 to disable AutoSpeedLimit (mbps)
        WarnTimes: 0 # After (WarnTimes) consecutive warnings, the user will be limited. Set to 0 to punish overspeed user immediately.
        LimitSpeed: 0 # The speedlimit of a limited user (unit: mbps)
        LimitDuration: 0 # How many minutes will the limiting last (unit: minute)
      GlobalDeviceLimitConfig:
        Enable: false # Enable the global device limit of a user
        RedisAddr: 127.0.0.1:6379 # The redis server address
        RedisPassword: YOUR PASSWORD # Redis password
        RedisDB: 0 # Redis DB
        Timeout: 5 # Timeout for redis request
        Expiry: 60 # Expiry time (second)
      EnableFallback: false # Only support for Trojan and Vless
      FallBackConfigs:  # Support multiple fallbacks
        - SNI: # TLS SNI(Server Name Indication), Empty for any
          Alpn: # Alpn, Empty for any
          Path: # HTTP PATH, Empty for any
          Dest: 80 # Required, Destination of fallback, check https://xtls.github.io/config/features/fallback.html for details.
          ProxyProtocolVer: 0 # Send PROXY protocol version, 0 for disable
      DisableLocalREALITYConfig: false  # disable local reality config
      EnableREALITY: false # Enable REALITY
      REALITYConfigs:
        Show: true # Show REALITY debug
        Dest: www.smzdm.com:443 # Required, Same as fallback
        ProxyProtocolVer: 0 # Send PROXY protocol version, 0 for disable
        ServerNames: # Required, list of available serverNames for the client, * wildcard is not supported at the moment.
          - www.smzdm.com
        PrivateKey: YOUR_PRIVATE_KEY # Required, execute './xray x25519' to generate.
        MinClientVer: # Optional, minimum version of Xray client, format is x.y.z.
        MaxClientVer: # Optional, maximum version of Xray client, format is x.y.z.
        MaxTimeDiff: 0 # Optional, maximum allowed time difference, unit is in milliseconds.
        ShortIds: # Required, list of available shortIds for the client, can be used to differentiate between different clients.
          - ""
          - 0123456789abcdef
      CertConfig:
        CertMode: dns # Option about how to get certificate: none, file, http, tls, dns. Choose "none" will forcedly disable the tls config.
        CertDomain: "www.vmess.xyz" # Domain to cert
        CertFile: /etc/XrayR/cert/www.vmess.xyz.cert.pem # Provided if the CertMode is file
        KeyFile: /etc/XrayR/cert/www.vmess.xyz.key.pem
        Provider: cloudflare # DNS cert provider, Get the full support list here: https://go-acme.github.io/lego/dns/
        Email: test@me.com
        DNSEnv: # DNS ENV option used by DNS provider
          CLOUDFLARE_EMAIL: domain@mail.com
          CLOUDFLARE_API_KEY: 12345678901234d567890912345678901234567

xrayr日志

Feb 21 05:52:33 vmess-ws-1 XrayR[9512]: XrayR 0.9.1 (A Xray backend that supports many panels)
Feb 21 05:52:33 vmess-ws-1 XrayR[9512]: 2024/02/21 05:52:33 Start the panel..
Feb 21 05:52:33 vmess-ws-1 XrayR[9512]: 2024/02/21 05:52:33 Xray Core Version: 1.8.4
Feb 21 05:52:33 vmess-ws-1 XrayR[9512]: 2024/02/21 05:52:33 [Warning] core: Xray 1.8.4 started
Feb 21 05:52:33 vmess-ws-1 XrayR[9512]: 2024/02/21 05:52:33 [https://domain.xyz] V2ray(ID=1) Added 0 new users
Feb 21 05:52:33 vmess-ws-1 XrayR[9512]: 2024/02/21 05:52:33 [https://domain.xyz] V2ray(ID=1) Start node monitor periodic task
Feb 21 05:52:33 vmess-ws-1 XrayR[9512]: 2024/02/21 05:52:33 [https://domain.xyz] V2ray(ID=1) Start user monitor periodic task
Feb 21 05:52:33 vmess-ws-1 XrayR[9512]: 2024/02/21 05:52:33 [https://domain.xyz] V2ray(ID=1) Start cert monitor periodic task
Feb 21 05:52:34 vmess-ws-1 XrayR[9512]: 2024/02/21 05:52:34 [www.vmess.xyz] The certificate expires in 89 days, the number of days defined to perform the renewal is 30: no renewal.
Feb 21 05:53:33 vmess-ws-1 XrayR[9512]: 2024/02/21 05:53:33 [https://domain.xyz] V2ray(ID=1) 0 user deleted, 0 user added

客户端日志

2024/02/21 13:24:18 [Info] [1975537099] proxy/socks: TCP Connect request to tcp:cloudconsole-pa.clients6.google.com:443
2024/02/21 13:24:18 [Info] [1975537099] app/dispatcher: default route for tcp:cloudconsole-pa.clients6.google.com:443
2024/02/21 13:24:18 tcp:127.0.0.1:60764 accepted tcp:cloudconsole-pa.clients6.google.com:443 [proxy]
2024/02/21 13:24:18 [Info] [1975537099] transport/internet/websocket: creating connection to tcp:www.vmess.xyz:443
2024/02/21 13:24:18 [Info] [1975537099] proxy/vmess/outbound: tunneling request to tcp:cloudconsole-pa.clients6.google.com:443 via www.vmess.xyz:443
2024/02/21 13:24:18 [Info] [1975537099] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > proxy/vmess/outbound: failed to read header > common/drain: common/drain: unable to drain connection > websocket: close 1000 (normal) > proxy/vmess/encoding: Unable to Read Header Len > websocket: close 1000 (normal)
2024/02/21 13:24:18 [Info] [1975537099] app/proxyman/inbound: connection ends > proxy/socks: connection ends > proxy/socks: failed to transport all TCP response > io: read/write on closed pipe