Coder Social home page Coder Social logo

wyx2685 / xrayr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xrayr-project/xrayr

288.0 288.0 107.0 5.83 MB

A Xray backend framework that can easily support many panels. 一个基于Xray的后端框架,支持V2ay,Trojan,Shadowsocks协议,极易扩展,支持多面板对接

Home Page: https://xrayr-project.github.io/XrayR-doc/

License: Mozilla Public License 2.0

Go 99.82% Dockerfile 0.18%

xrayr's People

Contributors

amin550 avatar betaxab avatar danielblackbeard avatar dependabot[bot] avatar github-aiko avatar isluckys avatar joshuacylinder avatar m1screw avatar mengxin239 avatar oppo9008 avatar pennymorant avatar pingpromax avatar pocketw avatar qiuzi avatar rebecca554owen avatar thank243 avatar thh1451 avatar wyx2685 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

xrayr's Issues

流量统计不准确

Reality节点看YouTub 4K视频测试时长30分钟 至少使用了几个G流量 但是节点显示只用了5MB流量
我看修改版的XrayR配置项不全,是不是没有开启流量统计功能?
json

Reality的SNI无法显示在V2board订阅里面

XrayR使用Reality配置, 我用小火箭读取你对应的V2board订阅后,无法自动得到SNI。如果手动添加SNI小火箭的配置中没有问题。不知道是XRayR, V2board的问题,还是小火箭的问题。

请问如何配置privateKey

搭建中使用vless+reality,但是启动时报错,privateKey为空,小白不懂如何设置,谢谢。均为使用wyx2685前后端
image


xrayr后端配置
image

Linux下编译失败。。

好奇怪,Windows下能编译成功。Linux下编译失败了

编译命令用的 go build -o XrayR -ldflags "-s -w"

报错如下:
package github.com/XrayR-project/XrayR/main
imports github.com/XrayR-project/XrayR/panel
imports github.com/XrayR-project/XrayR/api
imports github.com/xtls/xray-core/infra/conf
imports github.com/xtls/xray-core/proxy/wireguard
imports gvisor.dev/gvisor/pkg/bufferv2
imports gvisor.dev/gvisor/pkg/atomicbitops
imports gvisor.dev/gvisor/pkg/state
imports gvisor.dev/gvisor/pkg/state/wire
imports gvisor.dev/gvisor/pkg/gohacks: build constraints exclude all Go files in /root/go/pkg/mod/gvisor.dev/[email protected]/pkg/gohacks

vless+ws+tls in sing-box client

Hello, good day, thanks for your good script.
vless-ws-tls configurations do not work in the sing box client, how can we solve the problem?

invalid request user id

I have since migrated from original xrayr to your xrayr. There have been problems in users' connections, the reasons of which I have not understood. It connects and after a few minutes, the connection will be disconnected. and eof and tls errors are displayed to the user. And the following error is displayed in xrayr log a lot.
Nov 12 15:16:07 RE2 XrayR[690136]: 2023/11/12 15:16:07 46.143.46.222:15817 rejected proxy/vless/encoding: invalid request user id

  • What do you think is the problem? I would like to use your xrayr, which has more features.
    Do you think I did something wrong?

  • Configurations:
    vision reality
    vless ws tls

  • I use xrayr's global device limit (based on redis), all nodes are set to 2

  • It should be noted that this error and these problems were not observed before the update to your version. (with the same configuration)

  • last update

  • Thank you for developing useful scripts and your good guidance and support.

流量统计功能缺失

管理后台和用户端都看不到流量使用情况

v2board和xrayR都是用的wyx2685 fork的最新版本

V2rayN 订阅出错

xrayr日志显示是V2ray对接成功,面板也是VLess黄色,但订阅拉取出来是hy

transmission protocol configuration

Greetings and courtesy
Please help me about transmission protocol configuration.
I use the following code to use VMess +WS and everything is fine.

{
"path": "/",
"headers": {
"Host": "mysite.com"
}
}

But when I use TCP or use Vless with any transmission protocol
In the V2rayNG program, the request host part remains empty.
Please write me the correct transmission protocol configuration that can be used in TCP and Vless.
Do you allow me to contact you via Telegram or WeChat so that I can provide you with my server information and make a Vless node for me at a cost or as a gift?
thank you

流量统计不支持倍率统计

使用面板:https://github.com/wyx2685/V2board/
XrayR 0.9.1 安装方式
手动替换了 /usr/local/XrayR 中的程序文件,修改为支持reality的配置文件,并成功对接使用数天。
最近新增了一个0.01倍率的节点,发现倍率统计异常。
用户使用了4G流量,按照逻辑应该计费4*0.01=0.04G,但是实际却是4*100*0.01来统计的。另外,后台面板总流量统计正常显示。
后面试了一下,确实复现了。请问是我部署方式的问题还是程序设计bug?如果是后者,希望大佬能修复这个问题。
photo_2023-09-09_15-47-17

XrayR可以report online users, 但是面板没有收到request

你的最新版本XrayR和v2board。

测试连接,XrayR节点 journalctl日志:

V2ray(ID=1) Report 1 online users

v2bord 面板节点,搜索alive关键词:

sudo cat /var/log/nginx/access.log | grep "alive"

为空, grep ``push''一大堆日志。

似乎XrayR没有报告到v2board。

测试了一下vless+tls可以,但是 xtls-rprx-vision + reality有问题

测试了一下vless+tls可以,但是 xtls-rprx-vision + reality有问题.
v2b 下发到 shadowsrocket 的字段 vless-flow 是 none 而不是 xtls-rprx-vision, 我在 小火箭里手动修正为 xtls-rprx-vision 也无法连接.
我猜是 xraryr 的问题了.

#xrayr 跟换 NodeID  CertDomain ,
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: "NewV2board" # Panel type: SSpanel, V2board, NewV2board, PMpanel, Proxypanel, V2RaySocks
    ApiConfig:
      ApiHost: https://baidu.com
      ApiKey: bd123.
      NodeID: 3  
      NodeType: V2ray # Node type: V2ray, Shadowsocks, Trojan, Shadowsocks-Plugin
      Timeout: 30 # Timeout for the api request
      EnableVless: true # 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
    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
      EnableFallback: false # Only support for Trojan and Vless
      EnableREALITY: true # Enable REALITY
      REALITYConfigs:
        Show: true # Show REALITY debug
        Dest: download.nvidia.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.
          - download.nvidia.com
        PrivateKey: # 可不填
        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: # 可不填

      CertConfig:
        CertMode: none # Option about how to get certificate: none, file, http, tls, dns. Choose "none" will forcedly disable the tls config.

xrayr 关键日志

Aug 21 23:14:35  XrayR[1163063]: REALITY remoteAddr: 112.97.201.102:63976
Aug 21 23:14:35 XrayR[1163063]: REALITY remoteAddr: 112.97.201.102:63976        hs.c.AuthKey[:16]: [95 58 170 125 190 215 204 89 54 96 72 188 178 128 227 90]        AEAD: *aes.gcmAsm
Aug 21 23:14:35 XrayR[1163063]: REALITY remoteAddr: 112.97.201.102:63976        hs.c.ClientVer: [1 8 1]
Aug 21 23:14:35 XrayR[1163063]: REALITY remoteAddr: 112.97.201.102:63976        hs.c.ClientTime: 2023-08-21 23:14:35 +0800 CST
Aug 21 23:14:35 XrayR[1163063]: REALITY remoteAddr: 112.97.201.102:63976        hs.c.ClientShortId: [168 216 214 131 0 0 0 0]
Aug 21 23:14:35 XrayR[1163063]: REALITY remoteAddr: 112.97.201.102:63976        hs.c.conn == conn: true
Aug 21 23:14:35 XrayR[1163063]: REALITY remoteAddr: 112.97.201.102:63976        len(s2cSaved): 99        Server Hello: 93
Aug 21 23:14:35 XrayR[1163063]: REALITY remoteAddr: 112.97.201.102:63976        handled: false

help request for using reality

Greetings and Regards
Thank you for your time
Please check the config file below and tell me if the settings I make in the V2board panel need to be the same in the Reality Xray backend section or not?

`
Nodes:

  • PanelType: "NewV2board" # Panel type: SSpanel, NewV2board, PMpanel, Proxypanel, V2RaySocks, GoV2Panel
    ApiConfig:
    ApiHost: "x"
    ApiKey: "x"
    NodeID: 1
    NodeType: V2ray # Node type: V2ray, Shadowsocks, Trojan, Shadowsocks-Plugin
    Timeout: 30 # Timeout for the api request
    EnableVless: true # Enable Vless for V2ray Type
    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
    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.
    DeviceOnlineMinTraffic: 100 # V2board面板设备数限制统计阈值,大于此流量时上报设备数在线,单位kB,不填则默认上报
    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
    EnableREALITY: true# 是否开启 REALITY
    DisableLocalREALITYConfig: false # 是否忽略本地 REALITY 配置
    REALITYConfigs: # 本地 REALITY 配置
    Show: false # Show REALITY debug
    Dest: m.media-amazon.com:443 # REALITY 目标地址
    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.
    - m.media-amazon.com
    PrivateKey: # 可不填
    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: # 可不填
    - ""

`

面板只要添加reality节点就会报错

别的节点面板都可以正常添加,vlee+TLS也能正常添加,只要换成reality,右上角就报错显示“遇到了些问题”,我在reality安全配置中全部填完,还是报错,请问是什么原因

custum_dns无法读取

自定义custom_dns导致XrayR panic:

custom_dns设置如下:

[
   "servers": [
      "https+local://1.1.1.1/dns-query", 
      "localhost"
   ]
]

运行之后报错。。。

./XrayR -config config.yml 之后

报错如下:

Panel Start fialed: users is null
panic: Panel Start fialed: users is null

goroutine 1 [running]:
log.Panicf({0x341b6ce?, 0x38b1f80?}, {0xc0007f9e80?, 0xc0007d6ab0?, 0x2c704e0?})
log/log.go:391 +0x67
github.com/XrayR-project/XrayR/panel.(*Panel).Start(0xc0006a7b00)
github.com/XrayR-project/XrayR/panel/panel.go:207 +0x565
main.main()
github.com/XrayR-project/XrayR/main/main.go:97 +0x250

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.