345 字
2 分钟
sing-box vless 协议配置

晶哥别搞#

AI 生成内容#

本文配置由 Gemini 3 Pro 生成,文章中的配置都已经过验证,均可使用

部署 sing-box#

参阅 sing-box 官方文档
包管理器
Docker

服务端配置文件#

{
"log": {
"level": "warn",
"timestamp": true
},
"inbounds": [
{
"type": "vless",
"tag": "vless-in",
"listen": "0.0.0.0",
"listen_port": <端口号>,
"users": [
{
"uuid": "<使用 https://www.uuidgenerator.net/ 生成一个 UUID>",
"flow": ""
}
],
"transport": {
"type": "ws",
"path": "/",
"max_early_data": 0,
"early_data_header_name": "Sec-WebSocket-Protocol"
}
}
],
"outbounds": [
{
"type": "direct",
"tag": "direct"
}
]
}

记得填写端口号和 UUID

客户端#

{
"log": {
"level": "info",
"timestamp": true
},
"dns": {
"servers": [
{
"type": "tcp",
"tag": "dns-remote",
"detour": "proxy",
"server": "1.1.1.1"
},
{
"type": "udp",
"tag": "dns-local",
"server": "8.8.8.8"
}
],
"rules": [
{
"domain": "<服务端地址>",
"server": "dns-local"
}
],
"final": "dns-remote",
"independent_cache": true
},
"inbounds": [
{
"type": "tun",
"tag": "tun-in",
"address": [
"172.19.0.1/30",
"fdfe:dcba:9876::1/126"
],
"auto_route": true,
"strict_route": true,
"stack": "mixed"
}
],
"outbounds": [
{
"type": "vless",
"tag": "proxy",
"server": "<服务端地址>",
"server_port": 443,
"uuid": "<和服务端配置中的 UUID 一致>",
"tls": {
"enabled": true,
"server_name": "<服务端地址>",
"utls": {
"enabled": true,
"fingerprint": "chrome"
}
},
"transport": {
"type": "ws",
"path": "/",
"headers": {
"Host": "<服务端地址>"
},
"early_data_header_name": "Sec-WebSocket-Protocol"
}
},
{
"type": "direct",
"tag": "direct"
}
],
"route": {
"rules": [
{
"inbound": "tun-in",
"action": "sniff"
},
{
"protocol": "dns",
"action": "hijack-dns"
},
{
"domain": "<服务端地址>",
"outbound": "direct"
}
],
"final": "proxy",
"auto_detect_interface": true,
"default_domain_resolver": "dns-local"
}
}

记得替换 UUID 和 服务器地址

sing-box vless 协议配置
https://sijiu49.moe/posts/proxy-sing-box/
作者
肆鸠
发布于
2026-05-02
许可协议
CC BY-NC-SA 4.0

分享文章

生成精美分享图或复制链接,与更多人分享本文。

继续阅读

沿着主题读

基于共同的标签与分类

换条路线

从其他文章中稳定抽取

评论

正在加载评论...

最后更新于 ,距今已过 165 天

部分内容可能已过时