Enable private O&M to access your Bastionhost instance entirely from an internal network. Bastionhost supports web-based O&M over a private network, including the O&M portal and host O&M in the console, to help enterprises meet stricter O&M security requirements.
Background information
Bastionhost works with PrivateLink to establish a secure and stable private connection between your virtual private cloud (VPC) and Alibaba Cloud Bastionhost. This connection lets you access the O&M portal and perform web-based O&M over a private network, which further improves O&M connection security.
Supported editions
Only the Enterprise Edition and the SM-compliant Edition of Bastionhost support private O&M. To purchase or upgrade an instance, see Purchase an instance and Upgrade instance specifications.
Impacts
Enabling private O&M causes the following changes to your Bastionhost instance:
Enabling private O&M changes the IP address to which the Bastionhost private O&M address resolves. Use the domain name-based O&M address provided in the console for O&M.
If any access control policy, such as a firewall rule, allows traffic based on this IP address, update the policy with the new address after you enable private O&M.
After you enable the Bastionhost private O&M portal, the Xshell client may fail to log on to Bastionhost due to compatibility issues.
Procedure
Log on to the Bastionhost console. In the top navigation bar, select the region where your Bastionhost instance is located.
In the Bastionhost instance list, find the target instance and choose .
In the Enable Private O&M panel, select a PrivateLink endpoint security group, and then click OK.
ImportantIf the vSwitch changes, the private egress IP address changes. If any access control policy, such as a firewall rule, allows traffic based on this IP address, update the policy with the new address.
The instance is inaccessible during the change, and Bastionhost enters the Updating Configuration state. The change takes about 20 minutes. (Recommended) Perform this operation during off-peak hours.
The PrivateLink endpoint security group cannot be changed after it is selected.
Next steps
Configure client access rules
To perform web-based O&M over a private network, ensure that your client is connected to the internal network of the VPC where Bastionhost resides. You must also add rules to the PrivateLink endpoint security group to allow access from the client. Otherwise, the client cannot access the private O&M address of Bastionhost. The following list describes the services and ports commonly used by Bastionhost. Configure access rules based on your business requirements.
SSH O&M: 60022
RDP O&M: 63389
Session playback port: 9443
Host O&M port and O&M portal: 443
Bastionhost Assistant port: 20045
The following example shows how to configure a security group access rule. Assume that the IP address of your client is 192.168.0.1. For instructions about how to configure a security group for SSH O&M, see Add a security group rule.
In the inbound rules of the security group, add a rule with the following settings: Action to Allow, Priority to 1, Protocol Type to Custom TCP, Source to 192.168.0.1, and Port Range to 60022/60022.
When you enable private O&M, the PrivateLink endpoint security group supports only security groups in the VPC where Bastionhost resides. You cannot directly associate or reuse a security group from another region.
To access the Bastionhost private O&M portal from another region, perform the following steps:
Use Cloud Enterprise Network (CEN) to connect the VPC where Bastionhost resides and the VPC where your client resides so that the VPCs can communicate across regions.
In the security group of each region, manually add an inbound rule to allow the private egress IP address of Bastionhost.
Troubleshoot connection failures
If you configure the security group as described in the preceding steps but still cannot access Bastionhost or perform related operations over the private network, check the following scenarios:
Session recordings cannot be played back and the domain name cannot be pinged: Verify that private O&M is enabled, and check whether the PrivateLink endpoint security group allows the session playback port (9443) and the host O&M port (443).
A cross-account or cross-VPC connection to an ECS instance fails (for example, you cannot ping the internal IP address of the peer ECS instance): In addition to checking whether the PrivateLink endpoint security group allows Bastionhost-related ports (such as 60022), check the following two items:
Route conflicts: Check whether the client or the destination ECS instance has a route that conflicts with the VPC CIDR block (for example, the default Docker CIDR block
172.17.0.0/16). To resolve the issue, change the Docker CIDR block or add a more specific route.Public IP addresses used within a private network: If the destination server IP falls within a publicly routable range used privately (such as
172.x.x.x), add the server CIDR block to the Public IP addresses used within a private network configuration in the Bastionhost console.
FAQ
References
For instructions about how O&M administrators perform web-based O&M, see Web-based O&M.