Skip to content

VLESS + TLS

sing-box 和 mihomo 上的 VLESS 节点:VLESS 加 TLS,传输方式可选。适合想用自己的证书、又想在 sing-box 或 mihomo 上统一管理的场景;Xray 上对应的是 VisionXHTTP

支持的内核sing-box、mihomo
传输方式sing-box:tcp、ws、grpc、http、httpupgrade、quic;mihomo:tcp、ws、grpc、xhttp
域名和证书需要证书;用自签证书时加 --insecure 1
共用 443可以(--mount-443
常用客户端v2rayN、Shadowrocket、Clash Verge Rev、sing-box、NekoBox

在菜单里创建

  • sing-box:主菜单 24. 节点管理9. VLESS + TLS
  • mihomo:主菜单 349

sing-box 的 VLESS + TLS 节点菜单

用命令创建

bash
psm node add sing-box vless --tag my-vless --port 11443 \
  --sni hk.example.com \
  --cert-path /etc/nginx/ssl/hk.example.com/fullchain.pem \
  --key-path  /etc/nginx/ssl/hk.example.com/privkey.pem \
  --transport ws --path /ws
参数说明
--sni证书对应的域名
--cert-path--key-path证书和私钥;主菜单 10. SSL 证书管理 签发的证书在 /etc/nginx/ssl/域名/
--transport传输方式,见上表;--path 设置 ws 等的路径
--insecure 1自签证书时加上,导出的链接会让客户端跳过证书校验
--mount-443挂到 443 复用上
--ech true加上 ECH(加密 Client Hello)
--vless-enc x25519|mlkem768仅 mihomo:再加一层 VLESS Encryption

导出给客户端

bash
psm node export sing-box vless my-vless

VLESS + TLS 节点的分享链接

基于 AGPL-3.0 许可发布 · 仅用于合法用途,请遵守当地法律法规