Listener FAQ
This topic answers common questions about listeners.
Does Global Accelerator support client IP address preservation?
Do UDP listeners support client affinity and client IP address preservation?
Can different listeners of the same Global Accelerator instance use the same port?
What is the maximum number of listeners per Global Accelerator instance?
Why does client IP address preservation not work after it is enabled?
What do I do if access errors occur when I use a TCP listener to accelerate HTTPS services?
Client IP address preservation support
Yes.
Global Accelerator (GA) support for client IP address preservation depends on the listener protocol. For more information, see Client IP address preservation.
Client affinity and IP preservation on UDP listeners
Yes.
You can configure client affinity when you create a GA instance or add a UDP listener to an existing GA instance.
You can enable client IP address preservation for a UDP listener when you configure an endpoint group.
Shared ports for different listeners
UDP listeners can share a port with TCP, HTTP, or HTTPS listeners. TCP, HTTP, and HTTPS listeners cannot share a port with each other.
Maximum listeners per instance
50. To request an increase in Quota Center or on the Quota Management page, see Increase quotas.
For more information about Global Accelerator limits, see Quotas and limits.
Maximum ports per listener
The default maximum number of ports depends on the listener's routing type and protocol:
How to calculate the number of ports.
Intelligent routing listeners:
For each TCP or UDP listener: 30.
For each HTTP or HTTPS listener: 1.
Custom routing listeners: 65499.
For TCP or UDP listeners that use intelligent routing, the maximum number of ports per listener also varies by the billing method of the GA instance. For more information, see Listener ports.
Supported listener port range
The supported port range for a listener is 1 to 65,499.
Troubleshoot client IP preservation failure
For an HTTP or HTTPS listener, client IP address preservation does not work if the backend server cannot record or process the
X-Forwarded-Forheader.For a TCP listener:
If your backend service is deployed on Alibaba Cloud, client IP address preservation does not work if the backend instance, or the instance associated with the Elastic IP Address (EIP), is not in a VPC.
If your backend service is deployed outside Alibaba Cloud, the backend server must support Proxy Protocol to retrieve the client IP address. Otherwise, this feature does not work.
When client IP address preservation is enabled, Global Accelerator uses Proxy Protocol to forward the client IP address. If your backend server does not support Proxy Protocol, it cannot correctly parse the accelerated traffic.
If an IPv6 client accesses an IPv4 backend service, the backend server must support Proxy Protocol to retrieve the client IP address. Otherwise, this feature does not work.
For a UDP listener, client IP address preservation does not work if an IPv6 client accesses an IPv4 backend service.
For more information about how client IP address preservation works for different listener protocols, see Client IP address preservation.
Disable client IP preservation
For HTTP and HTTPS listeners, client IP address preservation is enabled by default and cannot be disabled.
For TCP and UDP listeners, you can disable this feature in the console by following these steps:
On the Instances page, find the target Global Accelerator instance and, in the Actions column, click Configure Listener.
On the Listeners tab, find the target listener and, in the Actions column, click Edit.
In the Configure Listener & Protocol step, click Next.
In the Configure Endpoint Group step, set Preserve Client IP to Do Not Preserve, and then click Next.
In the Configuration Review step, review the settings and click Submit.
Retrieve client IPs in IPv6-to-IPv4 traffic
For an HTTP or HTTPS listener, the client IP address for both IPv4 and IPv6 clients is available only in the
X-Forwarded-Forfield of the HTTP request header.For a TCP listener, only Proxy Protocol is supported for retrieving the IP addresses of IPv6 clients. With this method, the backend server must support Proxy Protocol to retrieve the client IP address. Otherwise, access may fail.
For UDP listeners, retrieving the IP addresses of IPv6 clients is not supported.
For more information about how to retrieve client IP addresses, see Client IP address preservation.
How do I troubleshoot access failures when using a TCP listener to accelerate HTTPS traffic?
A TCP listener can pass through HTTPS traffic. The backend handles the TLS handshake and certificates, so you do not need to bind a certificate to the GA TCP listener.
If access fails, check the listener port, backend service port, port mapping, backend connectivity, and whether the backend certificate is valid, the certificate chain is complete, and the certificate matches the requested domain. Also check whether security groups, firewalls, or access control rules block traffic from GA to the backend. For public backend connections, allow the GA endpoint egress public IP addresses as required. For private connections, allow the source addresses or CIDR blocks required by the applicable private connection method. If the backend is OSS and you use a custom domain, verify that the domain is bound to the target bucket and that the domain used by the client, HTTP Host, and TLS SNI match your application configuration. Using a TCP listener does not by itself make an OSS custom domain incompatible.
If you need GA to terminate TLS, manage certificates, or route HTTP requests by domain or path, use an HTTPS listener with a matching server certificate and the correct backend protocol and port. Changing the listener protocol alone does not guarantee that OSS domain binding or certificate configuration issues are resolved.