Skip to content

待完善

VLESS + XTLS + 回落通信实战

一、VLESS、V2Ray、Xray、XTLS 之间的关系?

VLESS 主要解决 WMESS 的历史遗留问题。比如:需要客户端与服务器端的时间不能相差 9 min 等。

紧接着,WMESS 的开发者又推出了 XTLS 这个黑科技。因为 VLESS + XTLS 作者是 V2Ray 重要开发者之一,因此 VLESS + XTLS 率先在 V2Ray 得到支持。由于 VLESS + XTLS 使用效果好,性能达到了顶峰。作者不愿意被滥用,所以不在开源。而一个打包 V2Ray 到 Debian 的人找到了 XTLS 作者,想让他修改开源协议,以符合 Debian 软件与依赖库的规则。

之后,XTLS 作者与打包 V2Ray 到 Debian 的人发生了激烈的争吵。以至于 XTLS 作者在 V2Ray 基础上开发了另一个软件,就是 Xray。XTLS 也从 V2Ray 移除。

VLESS 和 trojan 的关系?

二、VLESS + XTLS + 回落通信过程

![](.\images\VLESS + XTLS + 回落通信过程.jpg)

三、XTLS 性能之王被精准识别?

四、VLESS + XTLS + 回落搭建

1. 关闭防火墙

shell
ufw disable

2. xray 官方一键安装脚本

shell
bash -c "$(curl -L github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install -u root

启动 v2ray:systemctl start xray.service 重启 v2ray:systemctl restart xray.service v2ray 状态:systemctl status xray.service

3. 申请证书

安装 acme:curl https://get.acme.sh| sh

安装 socat:apt install socat

添加软链接:ln -s /root/.acme.sh/acme.sh /usr/local/bin/acme.sh

切换 CA 机构:acme.sh --set-default-ca --server letsencrypt

申请证书: acme.sh --issue -d 【你的域名】 --standalone -k ec-256

安装证书: acme.sh --installcert -d 【你的域名】 --ecc --key-file /usr/local/etc/xray/server.key --fullchain-file /usr/local/etc/xray/server.crt

4. xray 配置文件

配置文件在 /usr/local/etc/xray 目录下,名为 config.json

json
{
    "log": {
        "loglevel": "warning"
    },
    "inbounds": [
        {
            "port": 443,
            "protocol": "vless",
            "settings": {
                "clients": [
                    {
                        "id": "72bac1c4-02de-49b4-e498-fa8767638c23", 
                        "flow": "xtls-rprx-direct"
                    }
                ],
                "decryption": "none",
                "fallbacks": [
                    {
                        "dest": 8388
                    }
                ]
            },
            "streamSettings": {
                "network": "tcp",
                "security": "xtls",
                "xtlsSettings": {
                    "alpn": [
                        "http/1.1"
                    ],
                    "certificates": [
                        {
                            "certificateFile": "/usr/local/etc/xray/server.crt", 
                            "keyFile": "/usr/local/etc/xray/server.key"
                        }
                    ]
                }
            }
        },
        {
            "port": 8388,
            "listen": "127.0.0.1",
            "protocol": "trojan",
            "settings": {
                "clients": [
                    {
                        "password": "111"
                    }
                ],
                "fallbacks": [
                    {
                        "dest": "180.76.138.44:80"
                    }
                ]
            },
            "streamSettings": {
                "network": "tcp",
                "security": "none"
            }
        }
    ],
    "outbounds": [
        {
            "protocol": "freedom"
        }
    ]
}

如何不花钱提升你的节点速度?

一、使用 x-ui 搭建 vless+ws

![](.\images\使用 x-ui 搭建 vless+ws-架构图.jpg)

1.安装 x-ui

shell
bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)
# or
bash <(curl -Ls https://raw.githubusercontent.com/FranzKafkaYu/x-ui/master/install.sh)

x-ui 项目 GitHub 地址:https://github.com/vaxilu/x-ui

因原版 x-ui 很久没有更新和维护了,所以推荐使用这个:https://github.com/FranzKafkaYu/x-ui

使用 CF 的免费 CDN 服务提升节点速度,bbr拥塞控制优化链路速度,CDN的原理、CF优选IP的原理,vless+ws+tls+web+cdn节点组合搭建

Released under the MIT License.