检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Table 1 High-risk ports Protocol Port TCP 42 135 137 138 139 444 445 593 1025 1068 1433 1434 3127 3128 3129 3130 4444 4789 4790 5554 5800 5900 8998 9995 9996 UDP 135~139 1026 1027 1028 1068 1433 1434 4789 4790 5554 9995 9996 Parent topic: Public NAT Gateways
Table 1 Resource description Resource Description Quantity Cost NAT Gateway Protected resource. 1 For details about the billing modes and standards, see NAT Gateway Billing. Elastic IP (EIP) EIP bound to the NAT gateway.
If you want to bind a NAT gateway to an EIP, the NAT gateway must be in the same region as that of the EIP. After an EIP is bound to a NAT gateway, ECSs associated with this gateway can share the EIP to access the Internet or provide services accessible from the Internet.
Updating a Transit Subnet Function This API is used to update a transit subnet. Calling Method For details, see Calling APIs. URI PUT /v3/{project_id}/private-nat/transit-subnets/{transit_subnet_id} Table 1 Path Parameters Parameter Mandatory Type Description project_id Yes String
Querying Transit Subnets Function This API is used to query transit subnets. Constraints You can type a question mark (?) and an ampersand (&) at the end of the URI to define multiple search criteria. All optional parameters can be filtered. For details, see the example request. Calling
Creating a Transit Subnet Function This API is used to create a transit subnet. Calling Method For details, see Calling APIs. URI POST /v3/{project_id}/private-nat/transit-subnets Table 1 Path Parameters Parameter Mandatory Type Description project_id Yes String Specifies the project
Deleting a DNAT Rule Function This API is used to delete a specified DNAT rule. Calling Method For details, see Calling APIs. URI DELETE /v3/{project_id}/private-nat/dnat-rules/{dnat_rule_id} Table 1 Path Parameters Parameter Mandatory Type Description project_id Yes String Specifies
Deleting an SNAT Rule Function This API is used to delete a specified SNAT rule. Calling Method For details, see Calling APIs. URI DELETE /v3/{project_id}/private-nat/snat-rules/{snat_rule_id} Table 1 Path Parameters Parameter Mandatory Type Description project_id Yes String Specifies
Deleting a Transit Subnet Function This API is used to delete a transit subnet. Calling Method For details, see Calling APIs. URI DELETE /v3/{project_id}/private-nat/transit-subnets/{transit_subnet_id} Table 1 Path Parameters Parameter Mandatory Type Description project_id Yes String
DNAT Rules of Public NAT Gateways Permission API Action IAM Project Enterprise Project Creating a DNAT Rule POST /v2/{project_id}/dnat_rules nat:dnatRules:create √ √ Creating DNAT Rules in Batches POST /v2/{project_id}/dnat_rules/batch nat:dnatRules:create √ √ Querying DNAT Rules
SNAT Rules of Public NAT Gateways Permission API Action IAM Project Enterprise Project Creating an SNAT Rule POST /v2/{project_id}/snat_rules nat:snatRules:create √ √ Querying SNAT Rules GET /v2/{project_id}/snat_rules nat:snatRules:list √ √ Querying Details About an SNAT Rule GET
SNAT Rules of Private NAT Gateways Permission API Action IAM Project Enterprise Project Creating an SNAT Rule POST /v3/{project_id}/private-nat/snat-rules nat:privateNatSnatRules:create √ √ Querying an SNAT Rule GET /v3/{project_id}/private-nat/snat-rules/{snat_rule_id} nat:privateNatSnatRules
DNAT Rules of Private NAT Gateways Permission API Action IAM Project Enterprise Project Creating a DNAT Rule POST /v3/{project_id}/private-nat/dnat-rules nat:privateNatDnatRules:create √ √ Querying a DNAT Rule GET /v3/{project_id}/private-nat/dnat-rules/{dnat_rule_id} nat:privateNatDnatRules
Step 3: Configure an Alibaba Cloud NAT Gateway Create an Alibaba Cloud NAT gateway and configure SNAT and DNAT entries. For details, see Creating and Managing an Internet Public NAT Gateway.
Preserving Your Network with NAT Gateways During Cloud Migration Overview Enabling Mutual Access Between Servers in Overlapping Subnets on the Cloud Using a Specified IP Address to Access Hosts Outside a VPC
Parent Topic: Private NAT Gateways
For details, see Buying a Public NAT Gateway. Figure 2 Buying a public NAT gateway Table 1 Public NAT gateway creation parameters Parameter Description Region Region where the public NAT gateway is located. Select the region that the Kafka instance is in.
Deleting an ECS Public NAT gateway On the public NAT gateway console, locate the target public NAT gateway and delete it.
Querying the Details of a Transit Subnet Function This API is used to query the details of a specified transit subnet. Calling Method For details, see Calling APIs. URI GET /v3/{project_id}/private-nat/transit-subnets/{transit_subnet_id} Table 1 Path Parameters Parameter Mandatory
"github.com/huaweicloud/huaweicloud-sdk-go-v3/services/nat/v2" "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/nat/v2/model" region "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/nat/v2/region" ) func main() { // The AK and SK used for authentication are