All Products
Search
Document Center

Global Accelerator:Add and manage custom routing listeners

Last Updated:Jun 16, 2026

Configure a custom routing listener for a standard Global Accelerator (GA) instance to deterministically route traffic to all IP addresses in a specified subnet, or to a specified IP address and destination port, based on the mapping between listener ports and destination ports in the target endpoint group.

Background information

After you configure a custom routing listener for a GA instance, GA generates a port mapping table from the listener port range, endpoint group port ranges, and endpoint IP addresses (vSwitches). The listener forwards requests to specific vSwitch IP addresses and ports based on this mapping table.

Custom routing listeners forward traffic to specified backend servers. Use cases: multiplayer online games, video conferencing, and virtual classrooms. For information about how custom routing listeners work and how to use custom routing listeners, see How custom routing listeners work.

To compare routing types and their port range limits, see Listeners.

Prerequisites

  • You have been approved to use custom routing listeners. The custom routing listener feature is in private preview. To use this feature, contact your account manager to request access.

  • You must have created a standard GA instance.

  • For subscription-based GA instances, you must have purchased and associated a basic bandwidth plan.

Add a listener

  1. Configure the listener and protocol.

    1. Log in to the Global Accelerator console.

    2. On the Instances page, find the GA instance that you want to manage and click Configure Listener in the Actions column.

    3. On the Listeners tab, click Add Listener.

      Note

      Skip this step if you are adding the first listener or if the Global Accelerator instance has no listeners.

    4. On the Configure Listener & Protocol page, set the following parameters and click Next.

      Parameter

      Description

      Listener Name

      Enter a name for the listener.

      Routing Type

      Select a routing type. In this topic, select Custom Routing.

      • Standard: Routes traffic to the nearest or healthiest endpoint group based on latency.

      • Custom: Generates a port mapping table based on the listener port range, destination endpoint group port range, and IP addresses of endpoints (vSwitches). Deterministically routes traffic to specific IP addresses and ports on a vSwitch.Add and manage listeners of the Custom routing type.

        Note

        Custom routing listeners are in invitational preview. To use custom routing listeners, submit an application to your account manager. After your application is approved, you can use custom routing listeners.

      Port

      Specify the listener port that is used to receive and forward requests to endpoints. The port number must be in the range of 1 to 65499.

      Use a comma (,) to separate multiple ports, for example, 80,90,8080.

      For multiple consecutive ports, use a hyphen (-) to specify a port range, for example, 80-85.

      Note
      • The listener ports of different custom routing listeners on the same Global Accelerator instance cannot overlap.

      • Ports 25, 250, 4789, and 4790 are reserved by the system. GA automatically ignores these ports when it generates a mapping table.

      • Port 6081 cannot be configured for pay-as-you-go Global Accelerator instances.

      • The listener port range determines the number of possible combinations of ports in the associated endpoint group and IP addresses in all vSwitch endpoints. The formula is: Number of listener ports ≥ Total number of ports in the endpoint group × Total number of IP addresses in all vSwitch endpoints. We recommend that you configure a large port range for the listener.

  2. Configure endpoint groups and endpoints.

    An endpoint group is associated with a specific region and defines the mapping between the listener's port range and the backend service's port range and protocol. Endpoints specify the destination subnets and their traffic policies.

    For more information about endpoint groups and endpoints, see Endpoint groups and endpoints.

    1. Configure the endpoint group.

      On the Configure Endpoint Group page, configure the endpoint group based on the following information.

      Parameter

      Description

      Endpoint Group Name

      Enter a name for the endpoint group.

      Region

      Select the Alibaba Cloud region where the endpoint group is deployed.

      Port Mapping Range and Protocol

      Select an entry mode to define the port and protocol mappings from the listener to the backend services in the endpoint group.

      • List Mode: Enter the Port Range and Protocol. For Protocol, you can select TCP, UDP, or both.

        Click Add to enter multiple mappings.

        Use this mode to add up to 20 mappings at a time.

      • Batch Mode: Enter the port ranges and protocols according to the formatting instructions, or download the template, fill it out, and upload the file.

        Use this mode to add up to 100 mappings at a time.

      Note

      The total number of ports in the endpoint group multiplied by the total number of IP addresses in all vSwitch endpoints must be less than or equal to the total number of ports specified for the listener. The formula is: (Total number of ports in the endpoint group) × (Total number of IP addresses in all vSwitch endpoints) ≤ (Number of listener ports).

    2. Configure endpoints.

      In the Endpoint section, click Add Endpoint. In the Add Endpoint dialog box, configure the endpoint based on the following information, and then click OK.

      Parameter

      Description

      Backend Service Type

      Only vSwitch is supported.

      Backend Service

      Select the vSwitch to which you want to forward traffic.

      Subnet Traffic

      Select a subnet traffic access policy.

      • Allow All Traffic: All inbound traffic is forwarded to the specified backend service through Global Accelerator.

      • Deny All Traffic (Default): No inbound traffic is forwarded to the specified backend service through Global Accelerator.

      • Allow traffic for specific vSwitch IP addresses and ports: Specify the Access Policy that can receive traffic. Traffic destinations are the IP addresses and ports of ECS instances.

        Select an entry mode for the Access Policy:

        • List Mode: Enter an IP Address and Port. You can also select the All Ports option.

          Click +Add to enter multiple mappings.

          Use this mode to add up to 20 mappings at a time.

        • Batch Mode: Enter the IP address ranges and port mappings according to the formatting instructions, or download the template, fill it out, and upload the file.

          Use this mode to add up to 100 mappings at a time.

    3. Optional: Click + Add Endpoint Group to configure another endpoint group.

      Note

      If you need to create more than two endpoint groups, request a quota increase on the quota management page for gaplus_quota_epgs_per_listener.

    4. In the Cross-border Acceleration Settings section, read the Compliance Commitments Regarding Cross-border Data Transfers and select Agree to the Preceding Compliance Agreement.

      This step is required only if cross-border acceleration is not enabled for your GA instance and your service configuration involves cross-border acceleration between the Chinese mainland and other regions.

    5. Click Next.

  3. Review the configuration.

    On the Configuration Review wizard page, confirm the listener and endpoint configurations, and then click Submit.

    If you need to modify the configurations, you can click Edit in the corresponding section to return to the previous page.

    Note

    A new listener takes about 3 minutes to become active, and configuration changes take about 1 minute to apply.

Additional operations

Actions

Description

Edit a listener

Modify the listener name and port.

  • The routing type of a listener cannot be modified.

  • You cannot change the port range in a way that invalidates existing port mappings. For example, if port 199 in the listener port range 100-10000 is mapped to the destination port 80 of an endpoint, you cannot narrow the listener port range to 200-10000.

  1. On the Listeners tab, find the target listener and click Modify Listener in the Actions column.

  2. In the Edit Listener dialog box, modify the Listener Name or Port, and then click OK.

Delete a listener

Delete a listener. Deleting a listener also deletes its associated endpoint groups.

  1. On the Listeners tab, find the target listener and click Delete in the Actions column.

  2. In the Delete Listener dialog box, click OK.

Related documentation