Configuring a Windows Client
Version Requirements
OpenVPN GUI
- Download the OpenVPN GUI installation package and install it as prompted.
The installation package varies according to the Windows operating system as follows:
- For a 32-bit Windows operating system, download the Windows 32-bit MSI installer.
- For a 64-bit Windows operating system, download the Windows 64-bit MSI installer.
- For a 64-bit Windows ARM-based operating system, download the Windows ARM64 MIS installer.
- Download the client configuration file.
- Log in to the management console.
- Click
in the upper left corner and select the desired region and project.
- Click
in the upper left corner, and choose .
- In the navigation pane on the left, choose .
- Click the P2C VPN Gateways tab, and click Download Client Configuration in the Operation column of the target VPN gateway.
The downloaded client configuration file is client_config.zip.
- Decompress client_config.zip to a specified directory, for example, D:\.
After the decompression, the client_config.ovpn and client_config.conf files are generated.
- Open the client_config.ovpn file using Notepad or Notepad++.
- Add the client certificate and private key to the file.
Enter the client certificate content and the corresponding private key in between <cert></cert> and <key></key> tags, respectively.
<cert> -----BEGIN CERTIFICATE----- Client certificate content -----END CERTIFICATE----- </cert> <key> -----BEGIN PRIVATE KEY----- Client private key -----END PRIVATE KEY----- </key>
- Save the .ovpn configuration file.
- Click OpenVPN GUI in the Start menu to start the client.
The message "OpenVPN GUI is already running. Right click on the tray icon to start." is displayed in the lower right corner.
- Right-click the
icon on the Windows taskbar, and choose .
Import the .ovpn configuration file.
When the message "File imported successfully." is displayed in the lower right corner, the file is imported.
- In the Open dialog box, select the configuration file with the client certificate and private key added, and click Open.
- Right-click the
icon on the Windows taskbar, and choose Connect.
OpenVPN Connect
- Download OpenVPN Connect from the OpenVPN official website, and install it as prompted.
- Download the client configuration file.
- Log in to the management console.
- Click
in the upper left corner and select the desired region and project.
- Click
in the upper left corner, and choose .
- In the navigation pane on the left, choose .
- Click the P2C VPN Gateways tab, and click Download Client Configuration in the Operation column of the target VPN gateway.
The downloaded client configuration file is client_config.zip.
- Add configuration information.
You can add configuration information using either of the following methods:
- Method 1: Import the configuration file (with the client certificate and private key added).
- Decompress client_config.zip to a specified directory, for example, D:\.
After the decompression, the client_config.ovpn and client_config.conf files are generated.
- Open the client_config.ovpn file using Notepad or Notepad++.
- Add the client certificate and private key to the file.
Enter the client certificate content and the corresponding private key in between <cert></cert> and <key></key> tags, respectively.
<cert> -----BEGIN CERTIFICATE----- Client certificate content -----END CERTIFICATE----- </cert> <key> -----BEGIN PRIVATE KEY----- Client private key -----END PRIVATE KEY----- </key>
- Save the .ovpn configuration file.
- Start the OpenVPN Connect client.
- Import the .ovpn configuration file.
- Decompress client_config.zip to a specified directory, for example, D:\.
- Method 2: Use the original configuration file (without the client certificate and private key) and a USB key.
- Initialize a USB key.
The following uses Longmai's mToken GM3000 administrator tool (v2.2.19.619) as an example to describe how to create a USB key. When the USB key is successfully initialized, remove and insert the USB key.
- Import the client certificate to the USB key.
- Use the USB key to establish a VPN connection.
In OpenVPN Connect, import the configuration file without the client CA certificate and private key from the USB key, and click CONNECT.
- When the connection is being established, do not remove the USB key.
- After the connection is established, it will not be interrupted if you remove the USB key, and you can tear down this connection manually. However, the connection will fail to be re-established after you remove the USB key.
- Initialize a USB key.
- Method 1: Import the configuration file (with the client certificate and private key added).
- Establish a VPN connection.
If information similar to the following is displayed, the connection is successfully established.Figure 1 Connection established
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