If you encounter issues with an SSL-VPN connection, you can use log information from the client and the VPN Gateway console to troubleshoot the problem.
Background information
This topic lists common SSL-VPN connection errors and their solutions. To quickly resolve connection problems, you can compare the log entries from the client and the VPN Gateway console with the summary table in this topic.
For the log file locations on Linux, Windows, macOS, and Android clients, see Summary of SSL-VPN client log directories.
To view SSL-VPN connection logs, see View SSL server logs.
Summary of SSL-VPN client log directories
The following table lists the default locations of SSL-VPN connection log files for different VPN clients and operating systems.
If you specified a custom location for the log file during installation, check that location for the logs.
Client | Default path of the SSL-VPN connection log file |
Linux client (OpenVPN software) | /var/log/openvpn.log |
Windows client (OpenVPN software) | By default, the log information is stored in the log folder under the OpenVPN software installation directory. For example, C:\Users\User\OpenVPN\log |
macOS client (Tunnelblick software) | /Library/Application Support/Tunnelblick/Logs |
macOS client (OpenVPN software) | /Library/Application Support/OpenVPN/log/connection_name.log |
Common SSL-VPN connection errors and solutions
After you retrieve the SSL-VPN connection logs, find the keywords from your logs in the following table to identify the correct solution.
Error category | Cause | Log keyword | Solution |
Network unreachable | A network connectivity issue occurred. |
|
|
Protocol or port mismatch | The protocol or port of the client does not match the protocol or port of the SSL server. |
| Change the Protocol and Port for the SSL server. Then, download the SSL client certificate again and install it on the client. |
Connection limit exceeded | The number of SSL client connections has reached the maximum limit. |
|
|
Certificate expired | The certificate has expired. |
|
|
Certificate configuration error | The certificate is configured incorrectly. |
| Delete the existing SSL client certificate and its configurations. Then, download and install the SSL client certificate again. |
Incompatible VPN software version | The VPN software version on the client is not compatible with the Alibaba Cloud SSL server. |
| On the client, delete the existing VPN software. Then, refer to the VPN documentation to download and install the recommended VPN software. |
Insufficient IP addresses | The client CIDR block configured for the SSL server is too small, resulting in insufficient 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. For more information, see Create and manage an SSL server. For example, if the client CIDR block is 192.168.0.0/24, the system first creates a subnet with a /30 subnet mask, such as 192.168.0.4/30, from the 192.168.0.0/24 CIDR block. Then, the system allocates one IP address from 192.168.0.4/30 to the client. The other three IP addresses are reserved by the system to ensure network communication. In this case, each client consumes four IP addresses. Therefore, to ensure that an IP address can be allocated to every client, 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. |
No common encryption algorithm | The SSL server and the client do not share a common TLS cipher suite. |
| Install the VPN software recommended by VPN Gateway on the client. For more information, see Configure a client. |
Inconsistent encryption algorithm | The encryption algorithm of the SSL server does not match the encryption algorithm of the client. |
| Confirm that the encryption algorithm of the installed SSL client certificate is the same as the encryption algorithm of the SSL server. If they are not the same, delete the existing SSL client certificate and all its configurations. Then, download the SSL client certificate again and install it on the client.
|
Packet ID conflict | The network connection is unstable or the encryption algorithm of the SSL server is set to none. |
|
|
Time not synchronized | SSL verification fails, or the time difference between the client and the server is too large. |
|
|
Certificate verification failed | SSL certificate verification failed. |
|
|
Two-factor authentication failed | Two-factor authentication failed. |
|
|
Missing TAP adapter | The client is missing the TAP virtual Ethernet adapter, which must be recreated. |
|
|
ovpnagent is not running | The ovpnagent program is not running on the macOS client. |
|
|
Client reconnects frequently | The client actively or automatically reconnects. |
|
|
Related operations
The following topics describe operations that you may need to perform while troubleshooting SSL-VPN connection issues:
To modify the configuration of an SSL server, see Modify an SSL server.
To change the maximum number of concurrent connections for an SSL server, see Change the maximum number of concurrent connections for an SSL server.
To create an SSL client certificate, see Create and manage an SSL client certificate.
To download an SSL client certificate, see Download an SSL client certificate.
To install an SSL client certificate, see Configure a client.
To view SSL server logs, see View SSL server logs.
To view client connection information, see View the connection information of an SSL client.
To modify the client configuration during troubleshooting, refer to the user guide for your client.