2022-08-24 21:02:28 +08:00
|
|
|
### 结构
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
2022-08-31 13:21:29 +08:00
|
|
|
"type": "vmess",
|
|
|
|
"tag": "vmess-out",
|
|
|
|
|
|
|
|
"server": "127.0.0.1",
|
|
|
|
"server_port": 1080,
|
|
|
|
"uuid": "bf000d23-0752-40b4-affe-68f7707a9661",
|
|
|
|
"security": "auto",
|
|
|
|
"alter_id": 0,
|
|
|
|
"global_padding": false,
|
|
|
|
"authenticated_length": true,
|
|
|
|
"network": "tcp",
|
|
|
|
"tls": {},
|
2022-09-23 10:30:07 +08:00
|
|
|
"packet_encoding": "",
|
2022-08-31 13:21:29 +08:00
|
|
|
"multiplex": {},
|
|
|
|
"transport": {},
|
|
|
|
|
|
|
|
... // 拨号字段
|
2022-08-24 21:02:28 +08:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2022-08-31 13:21:29 +08:00
|
|
|
### 字段
|
2022-08-24 21:02:28 +08:00
|
|
|
|
|
|
|
#### server
|
|
|
|
|
|
|
|
==必填==
|
|
|
|
|
2022-08-25 09:45:22 +08:00
|
|
|
服务器地址。
|
2022-08-24 21:02:28 +08:00
|
|
|
|
|
|
|
#### server_port
|
|
|
|
|
|
|
|
==必填==
|
|
|
|
|
2022-08-25 09:45:22 +08:00
|
|
|
服务器端口。
|
2022-08-24 21:02:28 +08:00
|
|
|
|
|
|
|
#### uuid
|
|
|
|
|
|
|
|
==必填==
|
|
|
|
|
2022-08-25 09:45:22 +08:00
|
|
|
VMess 用户 ID。
|
2022-08-24 21:02:28 +08:00
|
|
|
|
|
|
|
#### security
|
|
|
|
|
2022-08-25 09:45:22 +08:00
|
|
|
加密方法:
|
2022-08-24 21:02:28 +08:00
|
|
|
|
|
|
|
* `auto`
|
|
|
|
* `none`
|
|
|
|
* `zero`
|
|
|
|
* `aes-128-gcm`
|
2023-03-01 17:06:31 +08:00
|
|
|
* `chacha20-poly1305`
|
2022-08-24 21:02:28 +08:00
|
|
|
|
2022-08-25 09:45:22 +08:00
|
|
|
旧加密方法:
|
2022-08-24 21:02:28 +08:00
|
|
|
|
|
|
|
* `aes-128-ctr`
|
|
|
|
|
|
|
|
#### alter_id
|
|
|
|
|
|
|
|
| Alter ID | 描述 |
|
|
|
|
|----------|------------|
|
|
|
|
| 0 | 禁用旧协议 |
|
|
|
|
| 1 | 启用旧协议 |
|
|
|
|
| > 1 | 未使用, 行为同 1 |
|
|
|
|
|
|
|
|
#### global_padding
|
|
|
|
|
|
|
|
协议参数。 如果启用会随机浪费流量(在 v2ray 中默认启用并且无法禁用)。
|
|
|
|
|
|
|
|
#### authenticated_length
|
|
|
|
|
2022-08-25 09:45:22 +08:00
|
|
|
协议参数。启用长度块加密。
|
2022-08-24 21:02:28 +08:00
|
|
|
|
|
|
|
#### network
|
|
|
|
|
2022-08-25 09:45:22 +08:00
|
|
|
启用的网络协议。
|
2022-08-24 21:02:28 +08:00
|
|
|
|
|
|
|
`tcp` 或 `udp`。
|
|
|
|
|
|
|
|
默认所有。
|
|
|
|
|
|
|
|
#### tls
|
|
|
|
|
2022-08-25 09:45:22 +08:00
|
|
|
TLS 配置, 参阅 [TLS](/zh/configuration/shared/tls/#outbound)。
|
2022-08-24 21:02:28 +08:00
|
|
|
|
2022-09-23 10:30:07 +08:00
|
|
|
#### packet_encoding
|
2022-08-27 21:32:20 +08:00
|
|
|
|
2023-02-28 20:27:30 +08:00
|
|
|
UDP 包编码。
|
|
|
|
|
2022-09-23 10:30:07 +08:00
|
|
|
| 编码 | 描述 |
|
|
|
|
|------------|---------------|
|
|
|
|
| (空) | 禁用 |
|
|
|
|
| packetaddr | 由 v2ray 5+ 支持 |
|
|
|
|
| xudp | 由 xray 支持 |
|
2022-08-27 21:32:20 +08:00
|
|
|
|
2022-08-24 21:02:28 +08:00
|
|
|
#### multiplex
|
|
|
|
|
2023-11-08 12:09:22 +08:00
|
|
|
参阅 [多路复用](/zh/configuration/shared/multiplex#outbound)。
|
2022-08-24 21:02:28 +08:00
|
|
|
|
|
|
|
#### transport
|
|
|
|
|
2023-12-14 22:23:52 +08:00
|
|
|
V2Ray 传输配置,参阅 [V2Ray 传输层](/zh/configuration/shared/v2ray-transport/)。
|
2022-08-24 21:02:28 +08:00
|
|
|
|
|
|
|
### 拨号字段
|
|
|
|
|
2022-08-31 13:21:29 +08:00
|
|
|
参阅 [拨号字段](/zh/configuration/shared/dial/)。
|