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