---
url: /configuration/inbound/naive.md
description: naive HTTP/2 over TLS 服务端入站
---

# naive

在 HTTP/2 over TLS 上接受 naive CONNECT。

```yaml check
inbounds:
  naive:
    type: naive
    listen: 0.0.0.0:443
    tls:
      acme:
        domain: example.com
    users:
      alice: secret

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

## 字段

### type

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

### listen

* 类型：`SocketAddr`。
* 必填：是。

### tls

* 类型：[TLS 服务端块](/configuration/shared/tls-server)。
* 必填：是。

### users

* 类型：名字到密码的映射。
* 必填：可选。
* 默认：空；空表示不要求 Basic 凭据。

## 说明

::: info 仅 Linux
naive 入站依赖 Linux TLS 后端。
:::

UDP 通过 sing 的 UDP-over-TCP 承载。支持 TCP 与流中的 UDP；不能另套 `transport`，可使用 `fallback`。`network`、`udp_timeout`、`full_cone` 可用。

## 相关

* [TLS 服务端](/configuration/shared/tls-server)
* [共享 users](/configuration/shared/users)
* [共享 fallback](/configuration/shared/fallback)
