If OpenVPN is configured on a Windows instance, Cloud Assistant cannot run as expected on the instance. In this case, you can use OpenVPN to add the IP address of the Cloud Assistant server to a whitelist. This way, Cloud Assistant can run as expected.
OpenVPN parameters
For scenarios in which only specific IP addresses are required to use OpenVPN, you can configure the configuration file of the OpenVPN client. The following section describes the relevant parameters:
route-nopullAfter you specify this parameter in the
client.ovpnconfiguration file of the OpenVPN client, no network requests are forwarded to OpenVPN.vpn_gatewayAfter you specify the
route-nopullparameter in theclient.ovpnconfiguration file of the OpenVPN client, you can specify thevpn_gatewayparameter to allow specific network requests to be forwarded to OpenVPN.net_gatewayAfter you specify this parameter in the
client.ovpnconfiguration file of the OpenVPN client, all network requests are forwarded to OpenVPN by default. You can specify thenet_gatewayparameter to allow network requests from specific IP addresses to bypass OpenVPN.
Procedure
Connect to the instance.
For more information, see Connect to a Windows instance by using a password or key.
Obtain the IP address of the Cloud Assistant server.
You can obtain the IP address of the Cloud Assistant server by resolving the endpoint of Cloud Assistant. The Cloud Assistant endpoint is in the
<region-id>.axt.aliyun.comformat.NoteReplace <region-id> with the ID of the region where the instance resides. For information about Alibaba Cloud regions, see Regions and zones.
In this example, the China (Zhangjiakou) region is used. Run the following command to obtain the IP address of the Cloud Assistant server:
ping cn-zhangjiakou.axt.aliyun.comFind the path where the
client.ovpnconfiguration file of the OpenVPN client is stored and modify the file.In this example, the configuration file is stored in the following path:
C:\Program Files\OpenVPN\config\client.ovpn. The path may vary based on the installation path of OpenVPN.Restart the OpenVPN client and reconnect to the VPN to which the OpenVPN client was previously connected.
After the VPN is reconnected, you can use Cloud Assistant on the instance.