检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Managing DNAT Rules Adding a DNAT Rule Modifying a DNAT Rule Deleting a DNAT Rule Deleting DNAT Rules in Batches Importing DNAT Rules by Using a Template and Exporting DNAT Rules Parent Topic: Public NAT Gateways
"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
"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
"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
"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
Constraints You can create DNAT rules in batches 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.
Does Direct Connect Support NAT? No. During hybrid cloud networking, plan different IP address ranges for the cloud and your premises. If IP address ranges conflict, use NAT for your on-premises network. Parent topic: Interconnection with the Cloud
If nat_map_type is set to HOST, the value is the access address. nat_ip No String NAT IP address. nat_port No String NAT port.
Querying NAT Mapping Configuration Items of a Tenant Function Queries NAT mapping configuration items of a tenant. Debugging You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.
Transit Subnet Querying Transit Subnets Creating a Transit Subnet Querying the Details of a Transit Subnet Updating a Transit Subnet Deleting a Transit Subnet Parent Topic: APIs for Private NAT Gateways
API URI format: GET /v2/{project_id}/nat_gateways/{nat_gateway_id} For details, see Querying the Details of a Public NAT Gateway. Make a note of the public NAT gateway ID and the value of internal_network_id. Determine the EIP to be used. Query EIPs.
API URI format: GET /v2/{project_id}/nat_gateways/{nat_gateway_id} For details, see Querying the Details of a Public NAT Gateway. Make a note of the public NAT gateway ID and the value of internal_network_id. Determine the ECS to be used. Query ECSs.
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
If the VPC of a private NAT gateway belongs is one of the specified VPCs, the private NAT gateway is compliant. Parent topic: NAT Gateway
Creating an ECS Used as an NAT Server Scenarios In the scenario where tenants access SAP NetWeaver using an NAT server (with an EIP bound), create an ECS to be used as an NAT server on the public subnet.
The total number of DNAT and SNAT rules that can be added on a private NAT gateway varies with the private NAT gateway specifications.
Managing Transit IP Addresses Assigning a Transit IP Address Viewing a Transit IP Address Releasing a Transit IP Address Parent Topic: Private NAT Gateways
Transit IP Addresses Querying Transit IP Addresses Releasing a Transit IP Address Assigning a Transit IP Address Querying Details About a Specified Transit IP Address Parent Topic: APIs for Private NAT Gateways
Tags Querying Transit Subnets by Tag Querying Tags of All Transit Subnets in a Specified Project Querying Tags of a Transit Subnet Adding a Tag to a Transit Subnet Batch Adding or Deleting Tags to or from a Transit Subnet Deleting a Transit Subnet Tag Parent Topic: APIs for Private NAT
Configuring a NAT Protection Rule After verifying the traffic flow, configure protection rules so that the CFW can allow or block traffic accordingly. Configuring a NAT Protection Rule Log in to the CFW console.