> ## Documentation Index
> Fetch the complete documentation index at: https://docs.monad.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Authenticated UDP 检查

为准备即将进行的 Clear UDP 流量停用，本指南可帮助验证 Monad 节点是否已正确配置 Authenticated UDP。
它会检查节点的配置和对等设置是否完全支持 Auth UDP 运行。

## 步骤

### 1. 安装 yq（`tomlq` 工具）

```bash theme={null}
sudo apt-get update && sudo apt-get install -y yq
```

### 2. 检查配置验证脚本

```bash theme={null}
MF_BUCKET=https://bucket.monadinfra.com
curl -fsSL $MF_BUCKET/scripts/validate-auth-udp-config.sh
```

### 3. 运行配置验证脚本

```bash theme={null}
MF_BUCKET=https://bucket.monadinfra.com
curl -fsSL $MF_BUCKET/scripts/validate-auth-udp-config.sh | bash -s -
```

**输出示例：**

```
======================================
Checking monad client configuration...

Node name        : my-node
Node config file : /home/monad/monad-bft/config/node.toml
Peers file       : /home/monad/monad-bft/config/peers.toml

peer_discovery.self_auth_port = 8001 ✔
bootstrap.peers[1] address=64.31.29.190:8000 auth_port=8001 ✔
bootstrap.peers[2] address=64.31.53.173:8000 auth_port=8001 ✔
bootstrap.peers[3] address=208.115.197.25:8000 auth_port=8001 ✔
bootstrap.peers[4] address=64.130.52.235:8000 auth_port=8001 ✔
bootstrap.peers[5] address=64.130.56.50:8000 auth_port=8001 ✔
bootstrap.peers[6] address=64.130.49.148:8000 auth_port=8001 ✔
bootstrap.peers[7] address=69.162.93.53:8000 auth_port=8001 ✔
bootstrap.peers[8] address=185.189.46.19:8001 auth_port=8001 ✔

Current peers (depends on the network):
Auth UDP          : 166
Clear UDP         : 25
Total             : 191

✔ Configuration is Auth UDP compliant, and ready for Clear UDP decommission.
```

## 如果配置不符合 Auth UDP 要求

请考虑以下步骤：

1. 遵循 Auth UDP 指南：[Authenticated UDP 迁移](./auth-udp)

2. 验证**引导节点对等配置**已更新，之前的通知如下：

<Accordion title="引导对等节点更新（2026 年 2 月 11 日）">
  随着最近激活 Authenticated UDP 流量，所有节点的引导对等节点都需要更新，以便加入网络。

  1. 获取新的引导对等节点签名（所有 \[\[bootstrap.peers]] 条目）：

  Mainnet：

  * Validators: [https://bucket.monadinfra.com/config/mainnet/latest/node.toml](https://bucket.monadinfra.com/config/mainnet/latest/node.toml)

  * Full node: [https://bucket.monadinfra.com/config/mainnet/latest/full-node-node.toml](https://bucket.monadinfra.com/config/mainnet/latest/full-node-node.toml)

  Testnet：

  * Validators: [https://bucket.monadinfra.com/config/testnet/latest/node.toml](https://bucket.monadinfra.com/config/testnet/latest/node.toml)

  * Full node: [https://bucket.monadinfra.com/config/testnet/latest/full-node-node.toml](https://bucket.monadinfra.com/config/testnet/latest/full-node-node.toml)

  2. 确保用新记录替换现有的对等记录。对于给定的 secp256k1\_pubkey，配置中不应有重复条目。

  3. 重启节点：systemctl restart monad-bft monad-execution monad-rpc。（无需硬重置）

  4. 验证节点可以重新加入网络。

  注意：请注意，硬重置会清除节点的对等缓存，因为 reset-workspace.sh 脚本会删除 peers.toml 文件。任何过时的对等设置都可能导致连接问题。硬重置后，节点必须使用新的引导对等签名从头开始重建其对等列表。
</Accordion>

3. 确保**上游/下游连接**（验证者 \<> 专用/优先全节点）正在使用 Auth UDP

* 如果**远程对等节点已经支持 Auth UDP**，脚本应在 peers.toml 中找到相应的记录并打印预期的配置。
* 如果**远程对等节点仍在使用 Clear UDP**，脚本将找不到匹配的记录。
  在这种情况下，请联系远程对等节点的运营者，请求激活 Auth UDP 并获取新的名称记录签名。
