---
url: /configuration/outbound/mirage.md
description: 通过 REALITY 或 Kotodama 认证的 Mirage 服务器出站
---

# mirage

以 REALITY 或 Kotodama 同时认证客户端并伪装连接。

```yaml
outbounds:
  proxy:
    type: mirage
    server: proxy.example:443
    tls:
      server_name: www.example.com
      reality:
        public_key: L-V9o0fNYkMVKNqsX7spBzD_9oSvxM_C7ZCZX1jLO3Q
        short_id: 01ab
```

## 字段

### type

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

### server

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

### tls

* 类型：[TLS 客户端占位页](/configuration/shared/tls-client)。
* 默认：空块。
* 限制：`reality` 或 `kotodama` 至少出现一个；Mirage 没有独立密码。

### client

* 类型：字符串。
* 默认：空。
* 行为：客户端在复用会话里报告的名称。

## 说明

::: info 仅 Linux
Mirage 出站依赖 Linux 的 REALITY/Kotodama 与 BoringSSL 后端。
:::

Mirage 是会话池协议，接受四个池参数；默认池上限 `6`、保留 `4` 条空闲会话。可以套 `transport`。

## 相关

* [出站总览](/configuration/outbound/)
* [共享 TLS 客户端](/configuration/shared/tls-client)
* [共享 UDP](/configuration/shared/udp)
