检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
In a public NAT gateway, DNAT enables servers in a VPC to share an EIP to provide services accessible from the Internet through IP address mapping or port mapping. For details, see Adding a DNAT Rule.
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.
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.
Querying an API Version Function This API is used to query an API version of NAT Gateway. URI GET/{api_version} Table 1 Parameter description Parameter Mandatory Description api_version Yes Specifies the API version. Request None Response Table 2 lists response parameters.
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.
Creating an Enterprise Router Scenarios This section describes how to create an enterprise router. Procedure Create an enterprise router in region A. For details, see Creating an Enterprise Router. For enterprise router details, see Table 6. Parent topic: Creating Resources
Creating VPCs and ECSs Scenarios This section describes how to create VPCs and ECSs. Procedure Create four VPCs and three ECSs in region A. For details, see Creating a VPC with a Subnet. For details, see Purchasing an ECS in Custom Config Mode. For details about VPC and subnet planning
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.
Table 2 Common operations supported by each system-defined policy or role of NAT Gateway Operation NAT FullAccess NAT ReadOnlyAccess NAT Gateway Administrator Creating a NAT gateway √ x √ Querying NAT gateways √ √ √ Querying NAT gateway details √ √ √ Updating a NAT gateway √ x √ Deleting
Identity Authentication and Access Control You can use Identity and Access Management (IAM) to control access to your NAT Gateway resources. IAM permissions define which actions on your cloud resources are allowed or denied.
For example, if an IAM user wants to call an API to query NAT gateways, the user must be granted the permissions allowing for action nat:natGateways:list. Parent Topic: Permissions Policies and Supported Actions
Cost Composition NAT Gateway costs consist of costs of resources and resource packages, depending on the billing items of NAT gateways. For details, see Billing Items. Huawei Cloud Cost Center helps you manage resource costs with ease.
If you change the billing mode of a public NAT gateway from pay-per-use to yearly/monthly, the new billing mode will take effect immediately. Private NAT gateway supports only the pay-per-use billing mode (hourly) and the billing mode cannot be changed.
For details, see NAT Gateway Pricing Details.
The NAT Gateway billing mode cannot be changed from yearly/monthly to pay-per-use on the NAT Gateway console. To do so, go to the Billing & Costs > Renewals page. Parent topic: Billing Mode Changes