前言

  • 永久开源且免费。
  • 支持V2ray,Trojan, Shadowsocks多种协议。
  • 支持Vless和XTLS等新特性。
  • 支持单实例对接多面板、多节点,无需重复启动。
  • 支持限制在线IP
  • 支持节点端口级别、用户级别限速。
  • 配置简单明了。
  • 修改配置自动重启实例。
  • 方便编译和升级,可以快速更新核心版本, 支持Xray-core新特性。

对接准备

  1. 一台落地机器(解析成域名)
  2. V2board面板
  3. 一颗聪明的大脑
  4. 演示节点域名:aws1.weilai.ml
  5. 演示节点端口:10020(任意端口即可)

面板设置

  1. 面板后台=>节点管理=>添加一个v2ray节点
    节点添加
  1. 我们找到传输协议=>编辑配置 添加伪装域名格式如下
{
  "path": "/cctv13/hd.m3u8",
  "headers": {
    "Host": "你的域名"
  }
}

编辑配置

登录服务器SSH

  1. 安装XrayR后端

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

  2. 启动XrayR=>输入XrayR进行脚本管理
    启动XrayR
  3. 修改XrayR 配置文件 输入0进行修改
Log:
      Level: none # Log level: none, error, warning, info, debug 
      AccessPath: # ./access.Log
      ErrorPath: # ./error.log
    DnsConfigPath: # ./dns.json Path to dns config
    ConnetionConfig:
      Handshake: 4 # Handshake time limit, Second
      ConnIdle: 10 # 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(`这里修改为V2board你的面板类型`)
        ApiConfig:
          ApiHost: "http://127.0.0.1:667"(`这里修改为你网站的域名注意没有斜杠`)
          ApiKey: "123"(`这里修改为你网站的密钥`)
          NodeID: 41(`这里修改为你网站的的节点ID`)
          NodeType: V2ray # Node type: V2ray, Trojan, Shadowsocks, Shadowsocks-Plugin
          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, 0 means disable
          DeviceLimit: 0 # Local settings will replace remote settings, 0 means disable
          RuleListPath: # ./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/fallback/ 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: "node1.test.com" # Domain to cert
            CertFile: ./cert/node1.test.com.cert # Provided if the CertMode is file
            KeyFile: ./cert/node1.test.com.key
            Provider: alidns # DNS cert provider, Get the full support list here: https://go-acme.github.io/lego/dns/
            Email: [email protected]
            DNSEnv: # DNS ENV option used by DNS provider
              ALICLOUD_ACCESS_KEY: aaa
              ALICLOUD_SECRET_KEY: bbb
      
        PanelType: "V2board" # Panel type: SSpanel, V2board
        ApiConfig:
          ApiHost: "http://V2board.com"
          ApiKey: "123"
          NodeID: 42
          NodeType: Trojan # Node type: V2ray, Shadowsocks, Trojan
          Timeout: 30 # Timeout for the api request
          EnableVless: false # Enable Vless for V2ray Type, Prefer remote configuration
          EnableXTLS: false # Enable XTLS for V2ray and Trojan, Prefer remote configuration
        ControllerConfig:
          ListenIP: 0.0.0.0 # IP address you want to listen
          UpdatePeriodic: 60 # Time to update the nodeinfo, how many sec.
          EnableDNS: false # Enable custom DNS config, Please ensure that you set the dns.json well
          CertConfig:
            CertMode: dns # Option about how to get certificate: none, file, http, dns. Choose "none" will forcedly disable the tls config.
            CertDomain: "node2.test.com" # Domain to cert
            CertFile: ./cert/node2.test.com.cert # Provided if the CertMode is file
            KeyFile: ./cert/node2.test.com.key
            Provider: alidns # DNS cert provider, Get the full support list here: https://go-acme.github.io/lego/dns/
            Email: [email protected]
            DNSEnv: # DNS ENV option used by DNS provider
              ALICLOUD_ACCESS_KEY: aaa
              ALICLOUD_SECRET_KEY: bbb
  1. 启动XrayR 输入XrayR=>选择6重启XrayR 即可对接成功