If you encounter issues when you use SSL-VPN connections, you can check the logs of SSL-VPN clients or the logs of SSL-VPN connections in the VPN Gateway console to troubleshoot the issues.
Background Information
This topic describes common SSL-VPN connection issues and how to troubleshoot these issues. You can check the logs of SSL-VPN clients or the logs of SSL-VPN connections in the VPN Gateway console to troubleshoot SSL-VPN connection issues. For more information, see the Common SSL-VPN connection issues and troubleshooting section of this topic.
For more information about how to query the logs of an SSL-VPN client that runs Linux, Windows, macOS, or Android, see the Directories of log files for SSL-VPN clients section of this topic.
For more information about how to query the logs of an SSL-VPN connection, see Query the logs of an SSL server.
Directories of log files for SSL-VPN clients
The directory that stores the log file of an SSL-VPN client varies based on the operating system of the client on which the VPN application is installed. The following table describes the default directories of log files for the SSL-VPN clients that run different operating systems. You can find the default directory of the log file for your SSL-VPN client based on the operating system in the following table.
If you specify a custom directory to store the log file when you install the VPN application, you can find the log file in the specified directory.
Operating system | Default directory of the log file for the SSL-VPN client |
Linux client with OpenVPN installed | /var/log/openvpn.log |
Windows client with OpenVPN installed | By default, the log file is stored in the log folder of the directory in which OpenVPN is installed. Example: C:\Users\User\OpenVPN\log. |
macOS client with Tunnelblick installed | /Library/Application Support/Tunnelblick/Logs |
macOS client with OpenVPN installed | /Library/Application Support/OpenVPN/log/connection_name.log |
Common SSL-VPN connection issues and troubleshooting
After you obtain the logs of an SSL-VPN connection, you can search for the relevant keywords in the logs to identify the issue for troubleshooting. The following table describes the issues, keywords, and troubleshooting methods.
Category | Cause | Keyword | Troubleshooting method |
Network connection failure | The network communication is abnormal. |
|
|
Protocol or port number mismatch | The client and SSL-VPN server use different protocols or ports. |
| Change the protocol and port of the SSL server, redownload the SSL client certificate, and then install the certificate on the client. |
Excessive connections | The number of SSL-VPN connections exceeds the upper limit. |
|
|
Certificate expiration | The SSL client certificate has expired. |
|
|
Certificate configuration error | The certificate configuration is invalid. |
| Delete the current SSL client certificate and all configurations, redownload the certificate, and then install the certificate on the client. |
Incompatible VPN application versions | The version of the VPN application installed on the client is incompatible with the Alibaba Cloud SSL server. |
| Delete the existing VPN application that is installed on the client and download the VPN application that is compatible with the SSL server. For more information, see the "Step 4: Configure the client" section of the Connect a client to a VPC topic. |
Insufficient IP addresses | The client CIDR block configured on the SSL server cannot provide sufficient IP addresses. |
| Make sure that the number of IP addresses in the client CIDR block is at least four times the maximum number of SSL-VPN connections supported by the VPN gateway. For more information, see Create an SSL server. For example, if you specify 192.168.0.0/24 as the client CIDR block, the system first divides a subnet CIDR block with a subnet mask of 30 from 192.168.0.0/24, such as 192.168.0.4/30. This subnet provides up to four IP addresses. Then, the system allocates an IP address from 192.168.0.4/30 to the client and uses the other three IP addresses to ensure network communication. In this case, one client consumes four IP addresses. Therefore, to ensure that an IP address can be allocated to your client, you must make sure that the number of IP addresses in the client CIDR block is at least four times the maximum number of SSL-VPN connections supported by the associated VPN gateway. |
Encryption algorithm mismatch | The SSL server and client use different TLS cipher suites and no matching encryption algorithm can be found. |
| Install the VPN application recommended by VPN Gateway on your client. For more information, see the "Step 4: Configure the client" section of the Connect a client to a VPC topic. |
Inconsistent encryption algorithms | The configurations of encryption algorithms in the SSL server and client are inconsistent. |
| Check whether the encryption algorithm of the SSL client certificate installed on the client is consistent with that of the SSL server. If the encryption algorithms are inconsistent, delete the current SSL client certificate and all configurations, redownload the certificate, and then install the certificate on the client.
|
Packet ID conflict | The network connection is unstable or the encryption algorithm of the SSL server is set to none. |
|
|
Time synchronization issue | SSL verification fails or the time difference between the client and SSL server is longer than 10 minutes. |
|
|
Certificate verification failure | The SSL certificate verification fails. |
|
|
Two-factor authentication failure | The two-factor authentication fails. |
|
|
Test access port (TAP) missing | The client does not have a TAP virtual Ethernet adapter. |
|
|
Disabled ovpnagent program | The ovpnagent program on a macOS client is not running. |
|
|
Frequent client reconnection | The client automatically reconnects to the server. |
|
|
References
This section lists the references that you may need to troubleshoot SSL-VPN connection issues.
"Step 4: Configure the client" section in the Connect a client to a VPC topic
If you want to modify the configurations of a client when you troubleshoot SSL-VPN connection issues, see the user guide of the client.