How Do I Purchase the NAT and EIP Services to Enable Cloud Applications to Be Accessed Through the Internet?
Scenarios
After the administrator publishes an application, the cloud application is in the VPC subnet by default and cannot access the Internet. The administrator needs to configure the NAT gateway to share an EIP so that users can access and use Workspace Application Streaming using the Internet access address. If a cloud application has multiple service subnets, the Internet function must be enabled for each service subnet.
Workspace Application Streaming and Workspace share the same network. If a desktop exists in the same subnet of the same project and the administrator has enabled Internet access for the desktop, end users can directly access the application. If only cloud applications exist in the subnet of the current project, the administrator needs to access the NAT and EIP pages to purchase the corresponding services and enable the Internet.
Prerequisites
- You have obtained the region, project, VPC, and subnet information of the cloud application that needs to access the Internet.
- You have the permission to perform operations on the NAT and EIP services.
- By default, a Huawei Cloud account has the operation permissions on all Huawei Cloud services. If you use such an account, you do not need to confirm it.
- To use NAT and EIP, the IAM account created under the Huawei Cloud account must be added to the admin user group or a user group with NAT and EIP operation permissions. Go to the IAM page to check whether the user belongs to the admin user group. If not, grant the IAM account the permission to use NAT and EIP.
Procedure
Creating an EIP
- Log in to the console as an administrator.
- Click in the upper left corner and select the region and project where the cloud application to access the public network is located.
- Click and choose Networking > Elastic IP in the service list.
- On the page displayed, click Buy EIP.
- Configure the parameters by referring to the parameter description in Assigning an EIP.
Select the region and project of the cloud application that you want to access the public network.
- Click Next.
- Confirm the configurations and click Submit.
Buying a public NAT gateway
- Click and choose Networking > NAT Gateway in the service list.
- Click Buy Public NAT Gateway. The Buy Public NAT Gateway page is displayed.
- Configure the parameters by referring to the parameter description in Buying a Public NAT Gateway.
Select the VPC and subnet to which the cloud application that needs to access the Internet belongs.
- Click Next.
- Confirm the configurations and click Submit.
- On the page for adding a rule, click Cancel.
Checking whether the VPC has a route to the NAT gateway
- Log in to the Workspace Application Streaming console and choose Tenant Configuration.
- Click the VPC name of the tenant to go to its basic information page.
- In the Networking Components area on the right of the page, click the number next to Route Tables to go to the route table list page of the VPC.
- Click the name of the target route table. The basic information list is displayed.
- Check whether there is a route whose next hop is the NAT gateway in the route list.
The NAT gateway automatically creates a route 0.0.0.0/0 from the VPC to the NAT gateway to allow traffic from the VPC to the NAT gateway, as shown in Figure 1.
Adding an SNAT rule
- Click and choose Networking > NAT Gateway in the service list.
- On the displayed page, locate the NAT gateway created in 12 and choose Operation > Configure Rules.
- On the SNAT Rules tab page, click Add SNAT Rule.
- Configure the parameters by referring to the parameter description in Adding an SNAT Rule.
Set Scenario to VPC, Subnet to Existing, and EIP to the EIP purchased in 7.
- Click OK.
If the added SNAT rule is in the Running state, the rule is added successfully.
Configuring DNS forwarding
- Log in to the DNS server as the administrator.
- On the taskbar in the lower left corner, click .
- Click on the right of the Start menu.
- The Server Manager window is displayed.
- In the left navigation pane, click DNS.
- In the SERVERS area, right-click a Server name and choose DNS Manager from the shortcut menu.
- The DNS Manager dialog box is displayed.
- Expand DNS. Right-click the computer name, and choose Properties from the shortcut menu.
- On the Advanced tab page, deselect Disable recursion (also disable forwarders) and click Apply.
- On the Forwarder tab page, click Edit, enter the default DNS server IP address of the cloud application region in the text box, and click OK.
The default DNS server IP address of the Workspace Application Streaming region can be obtained from Huawei Cloud Private DNS Server Addresses.
Verifying whether Workspace Application Streaming can be accessed using the NAT gateway
- Log in to Workspace Application Streaming as an end user using the Huawei Cloud Workspace client to check whether the service can be used.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.