> For the complete documentation index, see [llms.txt](https://docs.verge.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.verge.io/run-the-platform/zh/wang-luo/nat-1to1.md).

# 配置 NAT 1 对 1 转换

在创建将外部 IP NAT 到内部 IP 的转换规则之前：

* [**为目标虚拟机定义一个静态（私有）IP**](/run-the-platform/zh/wang-luo/dhcp-static-lease.md)
* [**为内部网络分配一个外部 IP**](/run-the-platform/zh/wang-luo/assign-external-ip.md)

## 创建一个将外部 IP NAT 到内部 IP 的转换规则

1. 从 **内部网络仪表板**，单击 **规则** 左侧菜单中的。
2. 单击 **新建**.
3. 输入一个 **名称** 这将有助于未来的管理。
4. 可选地，可以指定 **描述** 可输入以记录额外的管理信息。
5. 在 **操作** 下拉菜单，选择 ***翻译***.
6. 在 **协议** 下拉菜单，选择 ***ANY***.
7. 在 **方向** 下拉菜单，选择 ***入站***.
8. **定义源：** 在 **类型** 下拉菜单，选择 ***任意/无***.
9. **定义目标：**
   * 在 **类型** 下拉菜单，选择 ***我的 IP 地址***.
   * 在 **IP 地址** 在下拉菜单中，选择外部 IP 地址。
10. **定义目标：**
    * 在 **类型** 下拉菜单，选择 ***我的 IP 地址***.
    * 在 **IP 地址** 在下拉菜单中，选择内部 IP 地址（已分配静态 IP 地址）。
11. 单击 **提交** 以保存该规则。
12. 单击 **应用规则** 在左侧菜单中启用新规则。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.verge.io/run-the-platform/zh/wang-luo/nat-1to1.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
