---
url: /configuration/outbound/kasumi.md
description: 通过 Kasumi 服务器出站
---

# kasumi

使用预共享密钥和可配置记录分帧连接 Kasumi 服务器。

```yaml check
outbounds:
  proxy:
    type: kasumi
    server: proxy.example:443
    password: MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWY=
    encryption: aes-128-gcm
    framing: u16be

route:
  final: proxy

dns:
  servers:
    default: {type: udp, address: 127.0.0.1:53}
  final: default
```

## 字段

### type

* 类型：字符串。
* 必填：是，第一项。
* 取值：`kasumi`。

### server

* 类型：端点。
* 必填：是。
* 默认端口：`443`。

### password

* 类型：字符串。
* 必填：是。
* 行为：32 个随机字节的标准 Base64。

### encryption

* 类型：字符串枚举。
* 默认：`aes-128-gcm`。
* 取值：`aes-128-gcm`、`chacha20-poly1305`。

### framing

* 类型：字符串枚举或字段数组。
* 默认：`u16be`。
* 取值：`u16be`、`u16le`、`xor16`、`maplestory-v83-framing`，或自定义字段列表。
* 自定义字段：`hex`、`u8`、`u16le`、`u16be`、`u32le`、`u32be` 与可选 `xor`；数值字段持有 `random` 或 `length`。

## 说明

Kasumi 有协议原生 UDP；经 detour 或 transport 时默认改为 `over-tcp`。`transport` 可使用受支持的 stream transport。

## 相关

* [出站总览](/configuration/outbound/)
* [共享 UDP](/configuration/shared/udp)
* [共享 transport](/configuration/shared/transport)
