Document: Deprecated vnext.users

This commit is contained in:
Meow
2026-05-06 19:40:33 +08:00
parent 9e37b04049
commit 9dc91349a8
21 changed files with 187 additions and 355 deletions
+4 -12
View File
@@ -10,7 +10,7 @@
为了避免你的流量被解密,<br>
你应该使用 `xray uuid``uuidgen` 生成一个独一无二的uuid <br>
在服务端上,放入 `inbounds[0].settings.users[0].id` 内 <br>
在客户端内,放入 `outbounds[0].settings.vnext[0].users[0].id` 内 <br>
在客户端内,放入 `outbounds[0].settings.id` 内 <br>
:::
## 服务端配置
@@ -62,17 +62,9 @@
{
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "server", // 服务器地址,请修改为你自己的服务器 ip 或域名
"port": 10086, // 服务器端口
"users": [
{
"id": "b831381d-6324-4d53-ad4f-8cda48b30811" // 记得替换这个字段,使用 `xray uuid` 或 `uuidgen` 生成
}
]
}
]
"address": "server", // 服务器地址,请修改为你自己的服务器 ip 或域名
"port": 10086, // 服务器端口
"id": "b831381d-6324-4d53-ad4f-8cda48b30811" // 记得替换这个字段,使用 `xray uuid` 或 `uuidgen` 生成
}
},
{
+6 -14
View File
@@ -208,20 +208,12 @@
"tag": "proxy",
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "a-name.yourdomain.com", // 替换成你的真实域名
"port": 443,
"users": [
{
"id": "uuiduuid-uuid-uuid-uuid-uuiduuiduuid", // 和服务器端的一致
"flow": "xtls-rprx-vision",
"encryption": "none",
"level": 0
}
]
}
]
"address": "a-name.yourdomain.com", // 替换成你的真实域名
"port": 443,
"id": "uuiduuid-uuid-uuid-uuid-uuiduuiduuid", // 和服务器端的一致
"flow": "xtls-rprx-vision",
"encryption": "none",
"level": 0
},
"streamSettings": {
"network": "tcp",
+6 -14
View File
@@ -82,20 +82,12 @@
"tag": "proxy-out-vless",
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "a-name.yourdomain.com",
"port": 443,
"users": [
{
"id": "uuiduuid-uuid-uuid-uuid-uuiduuiduuid",
"flow": "xtls-rprx-vision",
"encryption": "none",
"level": 0
}
]
}
]
"address": "a-name.yourdomain.com",
"port": 443,
"id": "uuiduuid-uuid-uuid-uuid-uuiduuiduuid",
"flow": "xtls-rprx-vision",
"encryption": "none",
"level": 0
},
"streamSettings": {
"network": "tcp",
@@ -191,18 +191,10 @@ WantedBy=multi-user.target
"tag": "nginxtls",
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "127.0.0.1",
"port": 6666,
"users": [
{
"id": "uuid",
"encryption": "none"
}
]
}
]
"address": "127.0.0.1",
"port": 6666,
"id": "uuid",
"encryption": "none"
},
"streamSettings": {
"sockopt": {
+5 -13
View File
@@ -65,19 +65,11 @@ sudo curl -oL /usr/local/share/xray/geosite.dat https://github.com/Loyalsoldier/
"tag": "proxy",
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "服务端域名",
"port": 443,
"users": [
{
"id": "UUID",
"flow": "xtls-rprx-vision",
"encryption": "none"
}
]
}
]
"address": "服务端域名",
"port": 443,
"id": "UUID",
"flow": "xtls-rprx-vision",
"encryption": "none"
},
"streamSettings": {
"network": "tcp",
+5 -13
View File
@@ -68,19 +68,11 @@
"tag": "proxy",
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "yourdomain.domain", //改为你自己的域名,直接填写ipv4或ipv6地址也可以
"port": 443,
"users": [
{
"id": "uuid", //填写uuid,可通过在终端中输入 xray uuid 生成;此处也支持任意字符串(https://xtls.github.io/config/inbounds/vless.html#userobject
"encryption": "none",
"flow": "xtls-rprx-vision"
}
]
}
]
"address": "yourdomain.domain", //改为你自己的域名,直接填写ipv4或ipv6地址也可以
"port": 443,
"id": "uuid", //填写uuid,可通过在终端中输入 xray uuid 生成;此处也支持任意字符串(https://xtls.github.io/config/inbounds/vless.html#userobject
"encryption": "none",
"flow": "xtls-rprx-vision"
},
"streamSettings": {
"sockopt": {
+32 -40
View File
@@ -170,47 +170,39 @@ bash -c "$(curl -L wgcf-cli.vercel.app)"
```json
{
"outbounds":[
{
"protocol":"wireguard",
"settings":{
"secretKey":"我的私钥",
"peers":[
{
"publicKey":"Warp公钥",
"endpoint":"engage.cloudflareclient.com:2408"
}
],
"reserved":[0, 0, 0] // 如果你有的话,粘贴reserved到这里
},
"streamSettings":{
"sockopt":{
"dialerProxy":"proxy"
}
},
"tag":"wireguard-1"
"outbounds": [
{
"protocol": "wireguard",
"settings": {
"secretKey": "我的私钥",
"peers": [
{
"publicKey": "Warp公钥",
"endpoint": "engage.cloudflareclient.com:2408"
}
],
"reserved": [0, 0, 0] // 如果你有的话,粘贴reserved到这里
},
{
"tag":"proxy",
"protocol":"vmess",
"settings":{
"vnext":[
{
"address":"我的IP",
"port":,
"users":[
{
"id":"我的UUID",
"security":"auto"
}
]
}
]
},
"streamSettings":{
"network":"tcp"
}
"streamSettings": {
"sockopt": {
"dialerProxy": "proxy"
}
},
"tag": "wireguard-1"
},
{
"tag": "proxy",
"protocol": "vmess",
"settings": {
"address": "我的IP",
"port": ,
"id": "我的UUID",
"security": "auto"
},
"streamSettings": {
"network": "tcp"
}
]
}
]
}
```
+4 -12
View File
@@ -10,7 +10,7 @@ To configure more complex features, please refer to the detailed instructions in
To avoid your traffic being decrypted,<br>
You should use `xray uuid` or `uuidgen` to generate a unique UUID.<br>
On the server side, put it in `inbounds[0].settings.users[0].id`.<br>
On the client side, put it in `outbounds[0].settings.vnext[0].users[0].id`.<br>
On the client side, put it in `outbounds[0].settings.id`.<br>
:::
## Server Configuration
@@ -62,17 +62,9 @@ On your PC (or mobile phone), you need to run Xray with the following configurat
{
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "server", // Server address. Please change to your own server IP or domain name.
"port": 10086, // Server port
"users": [
{
"id": "b831381d-6324-4d53-ad4f-8cda48b30811" // Remember to replace this field, generate using `xray uuid` or `uuidgen`
}
]
}
]
"address": "server", // Server address. Please change to your own server IP or domain name.
"port": 10086, // Server port
"id": "b831381d-6324-4d53-ad4f-8cda48b30811" // Remember to replace this field, generate using `xray uuid` or `uuidgen`
}
},
{
+6 -14
View File
@@ -206,20 +206,12 @@ Its disadvantage is probably that [hand-writing configuration files] is a bit tr
"tag": "proxy",
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "a-name.yourdomain.com", // Replace with your real domain
"port": 443,
"users": [
{
"id": "uuiduuid-uuid-uuid-uuid-uuiduuiduuid", // Consistent with server-side
"flow": "xtls-rprx-vision",
"encryption": "none",
"level": 0
}
]
}
]
"address": "a-name.yourdomain.com", // Replace with your real domain
"port": 443,
"id": "uuiduuid-uuid-uuid-uuid-uuiduuiduuid", // Consistent with server-side
"flow": "xtls-rprx-vision",
"encryption": "none",
"level": 0
},
"streamSettings": {
"network": "tcp",
+6 -14
View File
@@ -82,20 +82,12 @@ The following outbound configuration example, in plain English, means: Data is s
"tag": "proxy-out-vless",
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "a-name.yourdomain.com",
"port": 443,
"users": [
{
"id": "uuiduuid-uuid-uuid-uuid-uuiduuiduuid",
"flow": "xtls-rprx-vision",
"encryption": "none",
"level": 0
}
]
}
]
"address": "a-name.yourdomain.com",
"port": 443,
"id": "uuiduuid-uuid-uuid-uuid-uuiduuiduuid",
"flow": "xtls-rprx-vision",
"encryption": "none",
"level": 0
},
"streamSettings": {
"network": "tcp",
@@ -190,18 +190,10 @@ Enable auto-start on boot:
"tag": "nginxtls",
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "127.0.0.1",
"port": 6666,
"users": [
{
"id": "uuid",
"encryption": "none"
}
]
}
]
"address": "127.0.0.1",
"port": 6666,
"id": "uuid",
"encryption": "none"
},
"streamSettings": {
"sockopt": {
+5 -13
View File
@@ -65,19 +65,11 @@ sudo curl -oL /usr/local/share/xray/geosite.dat https://github.com/Loyalsoldier/
"tag": "proxy",
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "Server_Domain",
"port": 443,
"users": [
{
"id": "UUID",
"flow": "xtls-rprx-vision",
"encryption": "none"
}
]
}
]
"address": "Server_Domain",
"port": 443,
"id": "UUID",
"flow": "xtls-rprx-vision",
"encryption": "none"
},
"streamSettings": {
"network": "tcp",
@@ -70,19 +70,11 @@ If the Xray program is not installed on the side router, you can manually downlo
"tag": "proxy",
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "yourdomain.domain", // Change to your own domain. Direct IPv4 or IPv6 address is also acceptable.
"port": 443,
"users": [
{
"id": "uuid", // Fill in UUID. Can be generated by typing 'xray uuid' in terminal; Arbitrary strings are also supported (https://xtls.github.io/en/config/inbounds/vless.html#userobject)
"encryption": "none",
"flow": "xtls-rprx-vision"
}
]
}
]
"address": "yourdomain.domain", // Change to your own domain. Direct IPv4 or IPv6 address is also acceptable.
"port": 443,
"id": "uuid", // Fill in UUID. Can be generated by typing 'xray uuid' in terminal; Arbitrary strings are also supported (https://xtls.github.io/en/config/inbounds/vless.html#userobject)
"encryption": "none",
"flow": "xtls-rprx-vision"
},
"streamSettings": {
"sockopt": {
+32 -40
View File
@@ -170,47 +170,39 @@ Add the following to your existing routing rules:
```json
{
"outbounds":[
{
"protocol":"wireguard",
"settings":{
"secretKey":"My_Private_Key",
"peers":[
{
"publicKey":"Warp_Public_Key",
"endpoint":"engage.cloudflareclient.com:2408"
}
],
"reserved":[0, 0, 0] // If you have it, paste 'reserved' here
},
"streamSettings":{
"sockopt":{
"dialerProxy":"proxy"
}
},
"tag":"wireguard-1"
"outbounds": [
{
"protocol": "wireguard",
"settings": {
"secretKey": "My_Private_Key",
"peers": [
{
"publicKey": "Warp_Public_Key",
"endpoint": "engage.cloudflareclient.com:2408"
}
],
"reserved": [0, 0, 0] // If you have it, paste 'reserved' here
},
{
"tag":"proxy",
"protocol":"vmess",
"settings":{
"vnext":[
{
"address":"My_Server_IP",
"port":My_Port,
"users":[
{
"id":"My_UUID",
"security":"auto"
}
]
}
]
},
"streamSettings":{
"network":"tcp"
}
"streamSettings": {
"sockopt": {
"dialerProxy": "proxy"
}
},
"tag": "wireguard-1"
},
{
"tag": "proxy",
"protocol": "vmess",
"settings": {
"address": "My_Server_IP",
"port": My_Port,
"id": "My_UUID",
"security": "auto"
},
"streamSettings": {
"network": "tcp"
}
]
}
]
}
```
+4 -12
View File
@@ -10,7 +10,7 @@
Во избежание расшифровки вашего трафика <br>
следует сгенерировать уникальный UUID с помощью команды `xray uuid` или `uuidgen`, <br>
который затем нужно вставить на стороне сервера в поле `inbounds[0].settings.users[0].id`, <br>
а на стороне клиента - в поле `outbounds[0].settings.vnext[0].users[0].id`. <br>
а на стороне клиента - в поле `outbounds[0].settings.id`. <br>
:::
## Настройка сервера
@@ -62,17 +62,9 @@
{
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "server", // Адрес сервера, замените его на IP-адрес или доменное имя вашего сервера
"port": 10086, // Порт сервера
"users": [
{
"id": "b831381d-6324-4d53-ad4f-8cda48b30811" // Не забудьте заменить это поле, сгенерировав UUID с помощью `xray uuid` или `uuidgen`
}
]
}
]
"address": "server", // Адрес сервера, замените его на IP-адрес или доменное имя вашего сервера
"port": 10086, // Порт сервера
"id": "b831381d-6324-4d53-ad4f-8cda48b30811" // Не забудьте заменить это поле, сгенерировав UUID с помощью `xray uuid` или `uuidgen`
}
},
{
+6 -14
View File
@@ -207,20 +207,12 @@
"tag": "proxy",
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "sub.yourdomain.com", // Замените на доменное имя вашего сервера
"port": 443,
"users": [
{
"id": "uuiduuid-uuid-uuid-uuid-uuiduuiduuid", // Должен совпадать с идентификатором на сервере
"flow": "xtls-rprx-vision",
"encryption": "none",
"level": 0
}
]
}
]
"address": "sub.yourdomain.com", // Замените на доменное имя вашего сервера
"port": 443,
"id": "uuiduuid-uuid-uuid-uuid-uuiduuiduuid", // Должен совпадать с идентификатором на сервере
"flow": "xtls-rprx-vision",
"encryption": "none",
"level": 0
},
"streamSettings": {
"network": "tcp",
+6 -14
View File
@@ -82,20 +82,12 @@
"tag": "proxy-out-vless",
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "a-name.yourdomain.com",
"port": 443,
"users": [
{
"id": "uuiduuid-uuid-uuid-uuid-uuiduuiduuid",
"flow": "xtls-rprx-vision",
"encryption": "none",
"level": 0
}
]
}
]
"address": "a-name.yourdomain.com",
"port": 443,
"id": "uuiduuid-uuid-uuid-uuid-uuiduuiduuid",
"flow": "xtls-rprx-vision",
"encryption": "none",
"level": 0
},
"streamSettings": {
"network": "tcp",
@@ -191,18 +191,10 @@ WantedBy=multi-user.target
"tag": "nginxtls",
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "127.0.0.1",
"port": 6666,
"users": [
{
"id": "uuid",
"encryption": "none"
}
]
}
]
"address": "127.0.0.1",
"port": 6666,
"id": "uuid",
"encryption": "none"
},
"streamSettings": {
"sockopt": {
+5 -13
View File
@@ -66,19 +66,11 @@ sudo curl -oL /usr/local/share/xray/geosite.dat https://github.com/Loyalsoldier/
"tag": "proxy",
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "домен сервера",
"port": 443,
"users": [
{
"id": "UUID",
"flow": "xtls-rprx-vision",
"encryption": "none"
}
]
}
]
"address": "домен сервера",
"port": 443,
"id": "UUID",
"flow": "xtls-rprx-vision",
"encryption": "none"
},
"streamSettings": {
"network": "tcp",
@@ -70,20 +70,12 @@
"tag": "proxy",
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "yourdomain.domain", // Замените на ваше доменное имя, также можно использовать IPv4- или IPv6-адрес.
"port": 443,
"users": [
{
"id": "uuid", // Введите UUID, который можно сгенерировать, выполнив команду xray uuid в терминале.
// Также поддерживаются произвольные строки (https://xtls.github.io/config/inbounds/vless.html#userobject).
"encryption": "none",
"flow": "xtls-rprx-vision"
}
]
}
]
"address": "yourdomain.domain", // Замените на ваше доменное имя, также можно использовать IPv4- или IPv6-адрес.
"port": 443,
"id": "uuid", // Введите UUID, который можно сгенерировать, выполнив команду xray uuid в терминале.
// Также поддерживаются произвольные строки (https://xtls.github.io/config/inbounds/vless.html#userobject).
"encryption": "none",
"flow": "xtls-rprx-vision"
},
"streamSettings": {
"sockopt": {
+32 -40
View File
@@ -176,47 +176,39 @@ bash -c "$(curl -L wgcf-cli.vercel.app)"
```json
{
"outbounds":[
{
"protocol":"wireguard",
"settings":{
"secretKey":"Секретный ключ",
"peers":[
{
"publicKey":"Публичный ключ Warp",
"endpoint":"engage.cloudflareclient.com:2408"
}
],
"reserved":[0, 0, 0] // Вставьте reserved, если у вас есть.
},
"streamSettings":{
"sockopt":{
"dialerProxy":"proxy"
}
},
"tag":"wireguard-1"
"outbounds": [
{
"protocol": "wireguard",
"settings": {
"secretKey": "Секретный ключ",
"peers": [
{
"publicKey": "Публичный ключ Warp",
"endpoint": "engage.cloudflareclient.com:2408"
}
],
"reserved": [0, 0, 0] // Вставьте reserved, если у вас есть.
},
{
"tag":"proxy",
"protocol":"vmess",
"settings":{
"vnext":[
{
"address":"IP-адрес",
"port":Порт,
"users":[
{
"id":"UUID",
"security":"auto"
}
]
}
]
},
"streamSettings":{
"network":"tcp"
}
"streamSettings": {
"sockopt": {
"dialerProxy": "proxy"
}
},
"tag": "wireguard-1"
},
{
"tag": "proxy",
"protocol": "vmess",
"settings": {
"address": "IP-адрес",
"port": Порт,
"id": "UUID",
"security": "auto"
},
"streamSettings": {
"network": "tcp"
}
]
}
]
}
```