# 公网 NAT 网关

公网 NAT 网关是一种托管网络服务，它通过网络地址转换（NAT）使私有网络中的实例能够安全可靠地访问互联网。它使用 SNAT（源网络地址转换）让多个内网实例共享一个或多个公网 IP 地址进行出站流量。

在防止地址暴露和增强安全性的同时，它还支持共享公网 IP，有助于减少公网带宽和 IP 使用成本。

## 功能

* **出站访问**\
  内网子网中的实例通过 NAT 网关访问互联网，而不会暴露公网 IP。
* **IP 隐藏**\
  多个内部实例共享 NAT 网关的一个或多个公网 IP；只有网关的 IP 在外部可见，从而增强安全性。
* **路由表集成**\
  可以通过路由特定的 IP 和端口来精确控制入站和出站流量。
* **安全组支持**\
  可以使用虚拟私有云网络和安全组来实施访问控制。
* **按需付费**\
  灵活的计费方式有助于成本管理。


---

# Agent Instructions: 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:

```
GET https://docs.console.zenlayer.com/welcome/cn/elastic-compute/networking/public-nat-gateway.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
