Skip to main content

怎样搭建vlees和trojan共用443端口?

vless 目前最牛配置组合,vless+xtls+readv+trojan,共用 443 端口,速度更快,内存占用降低!

  1. 一个域名,一个 vps,我用的 Ubuntu

  2. 安装一些东西

    snap install certbot
  3. 域名解析,certbot 生成证书

    Certbot



    fuser -k 80/tcp;certbot certonly --standalone --keep --register-unsafely-without-email --agree-tos -d none.blue
  4. 脚本安装还是手动安装,随意哈

  5. v2ray 服务器端配置

    VlessAndTrojan





    {
    "log": {
    "loglevel": "info"
    },
    "inbounds": [
    {
    "port": 443,
    "protocol": "vless",
    "settings": {
    "clients": [
    {
    "id": "43cbee32-2357-4f0b-adce-96f27550cefb",
    "flow": "xtls-rprx-direct"
    }
    ],
    "decryption": "none",
    "fallbacks": [
    {
    "dest": 55555,
    "xver": 1
    }
    ]
    },
    "streamSettings": {
    "network": "tcp",
    "security": "xtls",
    "xtlsSettings": {
    "alpn": [
    "http/1.1"
    ],
    "certificates": [
    {
    "certificateFile": "/etc/letsencrypt/live/demo.none.blue/fullchain.pem",
    "keyFile": "/etc/letsencrypt/live/demo.none.blue/privkey.pem"
    }
    ]
    }
    }
    },
    {
    "port": 55555,
    "listen": "127.0.0.1",
    "protocol": "trojan",
    "settings": {
    "clients": [
    {
    "password": "!@#$%^&*()"
    }
    ],
    "fallbacks": [
    {
    "dest": 80
    }
    ]
    },
    "streamSettings": {
    "network": "tcp",
    "security": "none",
    "tcpSettings": {
    "acceptProxyProtocol": true
    }
    }
    }
    ],
    "outbounds": [
    {
    "protocol": "freedom"
    }
    ]
    }
  6. 后台运行,80 网站可以不搞的

  7. 客服端用我打包的便携包 Qv2ray 试试,集成 core 和所有插件,但是只能在 win10 64 位上用。

    choco install qv2ray.portable -y

    或者直接这个链接

  8. 视频教程