This topic helps you troubleshoot common issues with SSL-VPN connections, such as client connection failures and traffic forwarding problems.
Quick links to common issues
Client connection issues
SSL-VPN connectivity issues
-
What do I do if a client connects successfully but cannot be pinged?
-
What do I do if a client connects successfully but can only be pinged in one direction?
-
What do I do if a client can be pinged but cannot access domain names or applications?
-
What do I do if a client connects successfully but cannot access resources?
-
What do I do if packet loss occurs after a successful connection?
-
What do I do if latency is high after a successful connection?
-
Why does an SSL-VPN connection not use the specified encryption algorithm?
Two-factor authentication issue
Can I select an IDaaS instance that belongs to another Alibaba Cloud account when I configure two-factor authentication?
No. You can only select an IDaaS instance from within your own Alibaba Cloud account.
Client connection failure
This table describes possible causes and solutions.
|
Category |
Cause |
Solution |
|
Configuration error |
The SSL server or the client is configured incorrectly. |
|
|
Expired SSL client certificate |
The SSL client certificate is expired or invalid. |
|
|
Connection limit exceeded |
The number of clients connected to the SSL server exceeds the limit. |
|
|
IP address issue |
The CIDR block of the VPC overlaps with the CIDR block of the client. |
Modify the Local CIDR Block (the CIDR block of the VPC or vSwitch) or the Client CIDR Block of the SSL server to prevent IP address conflicts. For more information, see Modify an SSL server. |
|
The Client CIDR Block of the SSL server is too small. As a result, no IP addresses can be allocated to clients. |
Make sure that the number of IP addresses in the specified 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 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. |
|
|
VPN software issue |
A VPN software conflict occurs on the client. |
|
|
Other |
The cause is not listed above. |
Check the logs of the SSL-VPN connection to troubleshoot the failure. For more information, see Troubleshoot SSL-VPN connection issues. |
Intermittent disconnections
This table describes possible causes and solutions.
|
Category |
Cause |
Solution |
|
Unreliable public network |
Poor public network quality between the client and the VPN Gateway causes intermittent disconnections. |
On the client, run the If the network quality is poor (for example, high latency or packet loss), contact your internet service provider (ISP) for assistance. |
|
Long-distance SSL-VPN connections, such as from US (Silicon Valley) to Singapore, may experience intermittent disconnections when the client accesses the VPC. |
Change the Protocol of the SSL server to TCP for better reliability. For more information, see Modify an SSL server. If the issue persists after changing the Protocol to TCP, we recommend that you use Cloud Enterprise Network (CEN) and Smart Access Gateway (SAG) to connect the client to the VPC. |
|
|
SSL server configuration change |
The client disconnects because the SSL server configuration is changed. |
After you modify the SSL server configuration, reconnect the client. |
Partial client connection
This table describes possible causes and solutions.
|
Category |
Cause |
Solution |
|
Unreliable public network |
Long-distance SSL-VPN connections, such as from US (Silicon Valley) to Singapore, may experience intermittent disconnections when the client accesses the VPC. |
Change the Protocol of the SSL server to TCP for better reliability. For more information, see Modify an SSL server. If you use an SSL-VPN connection for long-distance communication, such as from US (Silicon Valley) to Singapore, and the issue persists after you change the Protocol to TCP, we recommend using Cloud Enterprise Network and Smart Access Gateway to connect your client to the VPC. |
|
Connection limit exceeded |
The number of clients connected to the SSL server exceeds the limit. |
|
|
Client-side issue |
The client fails to connect because the client or the VPN software is not working as expected. |
Try to restart the client, or reinstall and reconfigure the VPN software. For more information about how to install and configure VPN software, see Configure a client. |
|
Time out of sync |
The time difference between the client and the SSL server is too large, causing SSL verification to fail. |
The time difference between the client and the SSL server cannot exceed 10 minutes. Adjust the client's time to synchronize it with a standard time source.
|
Ping failure after connection
This table describes possible causes and solutions.
|
Cause |
Solution |
|
The access control policy of the client application blocks |
Check whether the access control policy of the client application blocks By default, the firewall of a Windows operating system blocks |
|
The operating system firewall on the destination ECS instance is blocking ICMP packets. |
If the route entries on the client are correct (you can see the route to the VPC CIDR block by running
Note
After confirming that the firewall is the root cause, we recommend adding an allow rule instead of keeping the firewall disabled. For example, run |
One-way ping issues
This table describes possible causes and solutions.
|
Scenario |
Cause |
Solution |
|
A client can successfully use the |
The access control policy of the client application blocks |
Check whether the access control policy of the client application blocks By default, the firewall of a Windows operating system blocks |
|
Using |
The outbound and return traffic paths between the client and the VPC are different. |
|
Ping works but app access fails
This table describes possible causes and solutions.
|
Cause |
Solution |
|
The client has no route to the DNS server, so domain name resolution is unavailable. |
|
Resource access failure
This table describes possible causes and solutions.
|
Category |
Cause |
Solution |
|
Routing issue |
The Local CIDR Block of the SSL server is not specified or is incorrectly configured. |
|
|
CIDR block configuration issue |
The Local CIDR Block overlaps with the Client CIDR Block of the SSL server. |
Check the SSL server configuration. Make sure that the Local CIDR Block and the Client CIDR Block do not overlap. For more information, see Modify an SSL server. |
|
The Destination CIDR Block of a route entry for an IPsec-VPN connection on the same VPN Gateway conflicts with the Client CIDR Block of the SSL server. |
Change the route entry for the IPsec-VPN connection to a more specific one, or change the Client CIDR Block of the SSL server to a different CIDR block. This prevents the Destination CIDR Block from conflicting with the Client CIDR Block. For more information, see Modify a policy-based route, Modify a destination-based route, or Modify an SSL server. |
|
|
Security group rule issue |
The security group rules of the VPC application or the access control policies of the client application do not allow communication between the client and the VPC. |
|
|
VPN software issue |
Incompatible OpenVPN versions on the client (too old or too new) may prevent the client from receiving or processing response packets from the VPN Gateway. For example, a Windows client that has OpenVPN 2.6.6 installed may fail to ping cloud resources. |
We recommend that you download and use the OpenVPN version provided in the VPN Gateway documentation. For more information, see Configure a client. |
Packet loss after connection
This table describes possible causes and solutions.
|
Category |
Cause |
Solution |
|
VPN Gateway specification issue |
A traffic burst exceeds the bandwidth of the VPN Gateway instance. Check the traffic monitoring data of the VPN Gateway instance in the VPN Gateway console for traffic bursts. |
You can upgrade the VPN Gateway instance or temporarily upgrade it. For more information, see Upgrade or renew a VPN gateway. |
|
SSL server configuration |
The SSL server uses UDP, an unreliable protocol, to establish an SSL-VPN connection with the client. |
|
|
Unreliable public network |
The client intermittently disconnects due to poor public network quality between the client and the VPN Gateway. |
On the client, run the If the network quality is poor, contact your ISP for assistance. |
High latency after connection
This table describes possible causes and solutions.
|
Category |
Cause |
Solution |
|
VPN Gateway specification issue |
A traffic burst exceeds the bandwidth of the VPN Gateway instance. Check the traffic monitoring data of the VPN Gateway instance in the VPN Gateway console for traffic bursts. |
You can upgrade the VPN Gateway instance or temporarily upgrade it. For more information, see Upgrade or renew a VPN gateway. |
|
Outdated VPN Gateway version |
Older VPN Gateway versions have lower forwarding performance, which can cause high latency under heavy traffic. |
Upgrade VPN Gateways created before April 1, 2021. Newer versions offer optimized SSL-VPN forwarding performance. For more information, see Upgrade a VPN gateway. |
Specified encryption algorithm not used
Cause
Both the Alibaba Cloud SSL server and OpenVPN (version 2.4.0 and later) have NCP (Non-Compliant Plaintext) mode enabled by default. NCP mode is a method for dynamically negotiating encryption algorithms. When this mode is enabled, the client and the SSL server establish an SSL-VPN connection by negotiating to use the encryption algorithm with the highest security level that is supported by both parties from the ncp_ciphers list, instead of using the encryption algorithm that you specified for the SSL server.
In OpenVPN 2.4.0 and later, the default encryption algorithms in the ncp_ciphers list are AES-256-GCM and AES-128-GCM. When a client establishes an SSL-VPN connection with an SSL server, you can check the connection logs to view the negotiated encryption algorithm. For example, the log may contain Data Channel: using negotiated cipher 'AES-256-GCM'.
If the client uses an OpenVPN version earlier than 2.4.0, which does not support NCP, the connection uses the encryption algorithm specified for the SSL server.
Recommendation
We recommend that you use OpenVPN 2.4.0 or later on the client to allow the client and the SSL server to negotiate the encryption algorithm.
If the client uses Tunnelblick, encryption algorithms are negotiated dynamically by default. The most secure mutually supported algorithm is used, and the algorithm that you specify for the SSL server does not take effect.
Cross-account IDaaS for two-factor authentication
No. You can only select an IDaaS instance from within your own Alibaba Cloud account.