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

# anytls

在 TLS 上建立多路复用的 AnyTLS 会话。

```yaml
outbounds:
  proxy:
    type: anytls
    server: proxy.example:443
    password: secret
    tls:
      server_name: proxy.example
```

## 字段

### type

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

### server

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

### tls

* 类型：[TLS 客户端占位页](/configuration/shared/tls-client)。
* 默认：空块。

### password

* 类型：字符串。
* 必填：是。

### client

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

## 说明

::: info 仅 Linux
AnyTLS 出站依赖 Linux 的 BoringSSL TLS 后端。
:::

它没有协议原生 UDP，默认 `over-tcp`；也可使用 `xudp` 或关闭。AnyTLS 是会话池协议，接受 [公共代理字段](/configuration/outbound/#公共代理字段)中的四个池参数；可以套 `transport`。

## 相关

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