检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
You can create a DNAT rule only when status of the NAT gateway is ACTIVE and admin_state_up of the NAT gateway administrator is True. Specify either port_id or private_ip at a time.
SDK Overview This document lists the SDKs provided by NAT Gateway and the addresses for obtaining the latest SDK versions. SDKs Table 1 lists the SDKs supported by NAT Gateway. You can view SDK updates, obtain installation packages, and view user guides in GitHub.
Public NAT Gateways Table 1 Public NAT gateway APIs Type Allow You to Public NAT gateways Create, query, update, and delete public NAT gateways, including creating a public NAT gateway, querying public NAT gateways, querying details of a public NAT gateway, updating a public NAT gateway
Table 1 Public NAT gateway operations Operation Resource Type Trace Creating a public NAT gateway natgateway createNatGateway Modifying a public NAT gateway natgateway updateNatGateway Deleting a public NAT gateway natgateway deleteNatGateway Creating a DNAT rule dnatrule createDnatRule
Creating Alarm Rules Scenarios You can set NAT gateway alarm rules to customize the monitored objects and notification policies. Then, you can learn NAT gateway running status in a timely manner. Procedure Log in to the management console.
For public and private NAT gateways, DNAT rules can be modified. Parent topic: DNAT Rules
In a public NAT gateway, DNAT enables servers in a VPC, regardless of if they are in the same AZ, to share an EIP to provide services accessible from the Internet.
A NAT gateway supports up to 55,000 concurrent connections to each destination IP address and port. If any of the destination IP address, port number, and protocol (TCP, UDP, or ICMP) changes, you can create another 55,000 connections.
Feature Description Phase Document 1 Private NAT gateways Private NAT gateways provide the network address translation (NAT) function for load balancers and cloud servers in a VPC, allowing multiple servers to share a private IP address to access or provide services accessible from
0 bit/s 1024 (IEC) Public NAT gateway 1 minute inbound_pps Inbound PPS Packets received by the public NAT gateway from the public network per second ≥0 Count N/A Public NAT gateway 1 minute outbound_pps Outbound PPS Packets received by the public NAT gateway from the VPC per second
Public NAT gateways support pay-per-use billing by day only. Private NAT gateways support pay-per-use billing by hour only. This section describes the billing rules for pay-per-use NAT gateways.
Public NAT gateways: Besides requiring services provided by the system, some ECSs also need to access the Internet to obtain information or download software.
NAT Gateway supports the following actions that can be defined in custom policies: Public NAT Gateways, including actions supported by all v2 APIs of the NAT gateway, such as creating, updating, and deleting NAT gateways.
Scenarios This section describes how to view NAT Gateway metrics. Procedure Log in to the management console. In the upper left corner, select the target region. Under Management & Governance, select Cloud Eye.
Figure 1 Searching for the NAT gateway Choose More > Delete in the Operation column to delete the NAT gateway. Ensure that the NAT gateway does not exist in the list.
Viewing Traces Scenarios CTS records the operations performed on NAT Gateway and allows you to view the operation records of the last seven days on the CTS console. This topic describes how to query these records. Procedure Log in to the management console.
Buy an EIP and a NAT gateway. Procedure Create VPCs. For details, see Creating a VPC. Ensure that the VPC CIDR blocks do not conflict with each other.
Prerequisites The billing mode of the public NAT gateway is pay-per-use. The yearly/monthly billing mode can be changed to pay-per-use only for public NAT gateways. Procedure Log in to the NAT Gateway console. Log in to the management console.
Yearly/Monthly: You pay upfront for the amount of time you expect to use the NAT gateway for. You will need to make sure your account has sufficient balance. Pay-per-use: You can start using the NAT gateway first and then pay as you go.
NAT Gateway does not provide access control and can only forward traffic based on rules. To restrict access to some websites, you can configure security groups and ACL rules. For details, see Security Group Configuration Examples and Network ACL Configuration Examples.