Loading... <div class="tip share">请注意,本文编写于 950 天前,最后修改于 860 天前,其中某些信息可能已经过时。</div> 环境: ``` Debian 10 XrayR开源地址:https://github.com/XrayR-project/XrayR 加密方式XTLS+VLESS+BBR,无中转无回落 端口:443 假设你的机场域名是:sspanel.example.com 假设你的后端VPS的IP是:114.51.41.91(好臭的IP) ``` 首先到你的域名解析提供商那里添加一条A记录,比如:`xx.example.com` 指向你的后端节点IP `114.51.41.91`。 然后打开你的SSPanel-Uim,登陆你的管理后台,找到`节点列表`,添加一个新的节点,节点名称建议如下格式:`国家/地区名<空格>取个名字`,这样能在订阅和用户那里显示国家Emoji,挺好看的就是。`节点地址`请按如下格式配置: ``` xx.example.com(你刚刚解析的节点域名);443;0;tcp;xtls;server=xx.example.com(你刚刚解析的节点域名)|flow=xtls-rprx-direct|enable_vless=true ``` `节点IP`请保持留空,下拉将`节点类型`更改为`V2ray`(这个时候就会有智慧的人问了:啊我用的是XrayR后端,这怎么能填v2ray呢?事实上,后端都通用的,而且SSPanel支持XTLS),完事以后你会在`节点列表`看到你这个节点,把`ID`记录下来,等会要用。 现在用SSH连上你的后端机子,确定是`root`身份运行脚本(不知道怎么获取`root`的可以`sudo -i`): ``` bash <(curl -Ls https://raw.githubusercontent.com/XrayR-project/XrayR-release/master/install.sh) ``` 运行完以后是没法马上用的,你需要进行一系列的配置。找到目录`/etc/XrayR`,使用编辑器编辑`config.yml`,内容如下: ``` Log: Level: none # 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 ConnetionConfig: 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, V2board, PMpanel, , Proxypanel ApiConfig: ApiHost: "https://sspanel.example.com" #你的前端地址 ApiKey: "1145141919810" #你的机场.config.php里面的muKey NodeID: 114514 # 刚刚记下来的ID NodeType: V2ray # Node type: V2ray, Shadowsocks, Trojan, Shadowsocks-Plugin Timeout: 30 # Timeout for the api request EnableVless: true # Enable Vless for V2ray Type EnableXTLS: true # Enable XTLS for V2ray and Trojan 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 FallBackConfigs: # Support multiple fallbacks - SNI: # TLS SNI(Server Name Indication), 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 dsable CertConfig: CertMode: dns # Option about how to get certificate: none, file, http, dns. Choose "none" will forcedly disable the tls config. CertDomain: "xx.example.com" # 你刚刚设置a解析到节点的域名 CertFile: /etc/XrayR/cert/证书名称.cert # Provided if the CertMode is file KeyFile: /etc/XrayR/cert/证书名称.key Provider: cloudflare # 你的DNS服务商,我这里是cloudflare,用来ACME自动申请证书的,DNS cert provider, Get the full support list here: https://go-acme.github.io/lego/dns/ Email: my@example.com DNSEnv: # DNS ENV option used by DNS provider CLOUDFLARE_EMAIL: my@example.com CLOUDFLARE_API_KEY: xxxxxxxxx ``` 保存退出,shell中运行`xrayr`,进入脚本,我建议先选择`11.一键安装BBR`,并且`优化系统配置`(它会提示你重启),直接y重启即可,重启完成以后就大功告成对接成功了。 正文到此结束 本文作者:咕咕 本文链接:https://blog.imgugu.ink/archives/17/ 版权声明:本博客所有文章除特别声明外,均默认采用 CC BY-NC-SA 4.0 许可协议。 最后修改:2022 年 07 月 15 日 © 允许规范转载 打赏 赞赏作者 赞 0 如果觉得我的文章对你有用,请随意赞赏
6 条评论
你的个站点风格,。。。。。。。。我表示很无语
大佬,在XrayR v0.8.1版本下使用官方的config改完反而出错,使用你的这个没有问题,但是这个“-”分组的符号位置变了,我该如何添加第二组服务器呢?谢谢
我搭建的sspanel不下发vless啊大佬,最新版dev的
应该不是SSPanel的问题,是XrayR后端,你看下配置文件
确保XrayR后端中的 EnableVless: true
然后再试试
嗯嗯,后端是的EnableVless是true,前端节点的地址栏也在最后加上了|enable_vless=true但是订阅出来还是vmess节点