If you encounter issues when using SSL-VPN connections, check the logs of SSL-VPN clients or the SSL-VPN connection logs in the VPN Gateway console to troubleshoot the issues.
Background
This topic describes common SSL-VPN connection issues and troubleshooting steps. Check the logs of SSL-VPN clients or the SSL-VPN connection logs in the VPN Gateway console. See the Common SSL-VPN connection issues and troubleshooting section.
-
For information about querying SSL-VPN client logs on Linux, Windows, macOS, or Android, see the Directories of log files for SSL-VPN clients section of this topic.
-
For information about querying SSL-VPN connection logs, see Query SSL-VPN logs.
Log file locations for SSL-VPN clients
The default log file location depends on the client operating system. The following table lists the default log file directories for each supported operating system.
If you specified a custom directory when installing the VPN application, the log file is in that directory instead.
|
Operating system |
Default log file directory |
|
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 SSL-VPN connection logs, search for relevant keywords to identify the issue. The following table lists common issues, keywords, and troubleshooting steps.
|
Category |
Cause |
Keyword |
Solution |
|
Network connection failure |
Network communication is abnormal. |
|
|
|
Protocol or port number mismatch |
The client and SSL server use different protocols or ports. |
|
Change the Protocol and Port on the SSL server, then download and install a new SSL client certificate on the client. |
|
Excessive connections |
The number of SSL-VPN connections exceeds the 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 its configurations, then download and install a new 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. |
|
Uninstall the existing VPN application from the client and install a version 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 on the SSL server does not have enough 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 exceeds 10 minutes. |
|
|
|
Certificate verification failure |
The SSL certificate verification fails. |
|
|
|
Two-factor authentication failure |
The two-factor authentication fails. |
|
|
|
Missing TAP adapter |
The client does not have a TAP virtual Ethernet adapter. |
|
|
|
Stopped ovpnagent program |
The ovpnagent program on a macOS client is not running. |
|
|
|
Frequent client reconnection |
The client automatically reconnects to the server. |
|
|
References
The following references may help you troubleshoot SSL-VPN connection issues.
-
"Step 4: Configure the client" section in the Connect a client to a VPC topic
To modify client configurations when troubleshooting SSL-VPN connection issues, refer to your client's user guide.