确保v2board版本在1.2.5及以上
一键安装&更新

bash <(curl -Ls https://raw.githubusercontent.com/XrayR-project/XrayR-release/master/install.sh)

将域名托管到cloudflared

同步时间(重要)

v2ray 节点需要进行时间同步,时间若与客户端相差太大则无法连接

CentOS 7

yum install -y ntp
systemctl enable ntpd
ntpdate -q 0.rhel.pool.ntp.org
systemctl restart ntpd

Debian 9 / Ubuntu 16

apt-get install -y ntp
systemctl enable ntp
systemctl restart ntp

或者(时间同步为上海)

rm -rf /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ntpdate time.nist.gov

第一步,在面板添加一个节点

后台 >节点管理 >添加节点 节点名称:随便填什么 权限组:随便填什么 服务器名称指示(sni)和节点地址:填伪装的域名 允许不安全:是
TLS:关闭
端口:随便
传输协议:选择Trojan
配置协议
{
  "path": "/随便",
  "headers": {
    "Host": "伪装的域名"
  }
}

第二步,配置 XrayR

进入文件夹/etc/XrayRconfig.yml route.json custom_outbound.json custom_inbound.json替换为我提供的文件
文件:https://lsy22.lanzouf.com/iCTyV0w0lg3i

替换完成后,编辑配置文件:

配置文件位置在

/etc/XrayR/config.yml

基础配置

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://url" ## 面板域名地址,或自定义个专用后端对接不提供访问的域名
      ApiKey: "***************" ## 面板设置的通讯密钥
      NodeID: 1 ## 前端节点id
      NodeType: Trojan # Node type: V2ray, Shadowsocks, Trojan
      Timeout: 30 # Timeout for the api request
      EnableVless: false # Enable Vless for V2ray Type
      EnableXTLS: false # Enable XTLS for V2ray and Trojan
      SpeedLimit: 0 # Mbps, Local settings will replace remote settings
      DeviceLimit: 0 # Local settings will replace remote settings
    ControllerConfig:
      ListenIP: 0.0.0.0 # IP address you want to listen
      UpdatePeriodic: 100 # Time to update the nodeinfo, how many sec.
      
      CertConfig:
        CertMode: dns # Option about how to get certificate: none, file, http, dns. Choose none will forcedly disable the tls config.
        CertDomain: "94.qxa.me" # 伪装的域名
        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: test@me.com        ##CF登录邮箱
          CLOUDFLARE_API_KEY: 57b4d8ec82ec3e    ##CF全局api

第三步,安装Cloudflare WARP

bash <(curl -sSL https://raw.githubusercontent.com/fscarmen/warp_unlock/main/unlock.sh)
安装配置
Language:2(中文)
优先级别:1(ipv4)
其他默认

第四步,配置Cloudflare WARP

1.更换WARP双栈网络接口
打开WARP菜单输入warp再输入3
2.安装socks5代理
打开WARP菜单输入warp再输入13

第五步启动 XrayR

xrayr start或者XrayR

最后修改:2023 年 12 月 20 日
如果觉得我的文章对你有用,请随意赞赏