mobile wallpaper 1mobile wallpaper 2mobile wallpaper 3mobile wallpaper 4mobile wallpaper 5mobile wallpaper 6mobile wallpaper 7mobile wallpaper 8mobile wallpaper 9mobile wallpaper 10mobile wallpaper 11mobile wallpaper 12mobile wallpaper 13mobile wallpaper 14mobile wallpaper 15mobile wallpaper 16mobile wallpaper 17mobile wallpaper 18mobile wallpaper 19mobile wallpaper 20mobile wallpaper 21mobile wallpaper 22mobile wallpaper 23mobile wallpaper 24mobile wallpaper 25mobile wallpaper 26mobile wallpaper 27mobile wallpaper 28mobile wallpaper 29mobile wallpaper 30mobile wallpaper 31mobile wallpaper 32mobile wallpaper 33mobile wallpaper 34mobile wallpaper 35mobile wallpaper 36mobile wallpaper 37mobile wallpaper 38mobile wallpaper 39mobile wallpaper 40mobile wallpaper 41mobile wallpaper 42mobile wallpaper 43mobile wallpaper 44mobile wallpaper 45mobile wallpaper 46mobile wallpaper 47mobile wallpaper 48mobile wallpaper 49mobile wallpaper 50mobile wallpaper 51mobile wallpaper 52mobile wallpaper 53mobile wallpaper 54mobile wallpaper 55mobile wallpaper 56mobile wallpaper 57mobile wallpaper 58mobile wallpaper 59mobile wallpaper 60mobile wallpaper 61mobile wallpaper 62mobile wallpaper 63mobile wallpaper 64mobile wallpaper 65
106 字
1 分钟
sing-box vless 协议配置
2026-05-02

晶哥别搞#

CAUTION

本教材仅做教学和实验,请勿在使用时违反当地的法律法规!

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

部分信息可能已经过时

目录