Configuring Workspace to Access the Internet
Scenario
After you purchase a cloud desktop, the cloud desktop is in the VPC subnet by default and cannot access the Internet. You need to configure the NAT gateway to share an EIP so that users can access the Internet from the cloud desktop after accessing the cloud desktop. If the cloud desktop has multiple service subnets, the Internet function must be enabled for each service subnet. When a user logs in to a cloud desktop in a subnet for which the Internet is not enabled, the user cannot access the Internet from the desktop.
This section described how to enable the Internet using the purchasing NAT and EIP pages provided by Workspace. You can also access the NAT or EIP page to purchase the service to enable the Internet by referring to How Do I Enable the Internet on Other Cloud Service Pages?
Prerequisites
- You have obtained the region, project, VPC, and subnet information of the desktop that needs to access the Internet.
- You have the permission to perform operations on the NAT and EIP services.
- By default, a Huawei account has the operation permissions on all Huawei Cloud services.
- To use NAT and EIP, the IAM account created under the Huawei 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 the NAT and EIP services. For details, see Creating a User and Granting NAT Gateway Permissions and Creating a User and Granting EIP Permissions.
Procedure
- Log in to the console.
- Check whether the Internet access address is enabled.
After a desktop is purchased, the Internet access address is enabled by default.
- In the navigation pane on the left, choose Tenant Configuration.
- Check the status of Internet access address.
- If the IP address is displayed, the Internet access address is enabled. Go to 3.
- If Disable is displayed, the Internet access address is disabled. Click Enable and go to 3.
After the Internet access address is disabled, you can enable Internet access address again. After the function is enabled again, the IP address changes. You need to notify the desktop user to use the new IP address to access the desktop.
- Check whether the desktop can access the Internet.
- In the navigation pane on the left, choose Desktops > Desktops.
- On the Desktops page, check the Internet column of the desired desktop.
- If the value is Disabled, end users cannot access the Internet through cloud desktops. See Internet Access Management to enable Internet access.
- If the value is Enabled, end users can access the Internet through cloud desktops. In this case, skip subsequent operations.
- If the current tenant VPC has multiple service subnets and cloud desktops in each service subnet need to access the Internet, enable Internet access for each service subnet by referring to Internet Access Management.
- If multiple NAT gateways are created in the same VPC, ensure that the default route in the route table points to all NAT gateways. Check whether the default route in the route table points to all NAT gateways. If no, configure this.
- (Optional) Configure DNS forwarding.
If a Windows AD server is connected, you need to configure DNS domain name resolution on the Windows AD server. For details, see 4.a to 4.j. If no Windows AD is connected, skip the following operations.
- 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 navigation pane on the left, 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 desktop region in the text box, and click OK.
The default DNS server IP address of the desktop region can be obtained from What Are Huawei Cloud Private DNS Server Addresses?
- Notify end users to use the Internet access address to access cloud desktops.
Follow-up Operations
When a user does not need to access the Internet, see Disabling Internet Access to disable Internet access.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot