All Products
Search
Document Center

Data Transmission Service:Connect a data center to DTS through VPN Gateway

Last Updated:May 27, 2026

Data Transmission Service (DTS) requires network access to your on-premises database for data migration, synchronization, or change tracking. If your database connects to Alibaba Cloud through an IPsec-VPN tunnel, add the DTS server CIDR blocks to the IPsec connection so that DTS traffic can pass through the tunnel.

Important

DTS uses multiple CIDR blocks per region. IKEv1 supports only one CIDR block in the Local Network field. Your IPsec connection must use ikev2. If your existing connection uses IKEv1, upgrade to IKEv2 before you proceed.

Prerequisites

Before you begin, ensure that you have:

Configure the IPsec connection

  1. Log on to the VPC console.

  2. In the left-side navigation pane, choose Interconnections > VPN > IPsec Connections.

  3. Modify the IPsec connection with the following settings:

    1. Set Routing Mode to Protected Data Flows.

    2. In the Local Network field, enter the CIDR blocks of all DTS servers in your region.

    3. In the Remote Network field, enter the IP address of your data center.

    4. In the IKE Configurations section, select ikev2 from the Version drop-down list.

    IPsec connection configuration

  4. Download the updated IPsec-VPN connection configuration and apply it to the gateway device in your data center. For detailed steps, see Load the IPsec-VPN connection configuration to the gateway device.

    Note

    When updating the VPN configuration on your gateway device, add only the VPC and data center CIDR blocks. Do not add DTS server CIDR blocks to the gateway device configuration. For example, on an H3C firewall, enter the data center and VPC CIDR blocks in the Source IP Address and Destination IP Address fields. Leave the DTS server CIDR blocks out.

  5. Add a static route on the gateway device in your data center. Set the destination to the CIDR blocks of DTS servers and the next hop to the IPsec-VPN tunnel interface.

Troubleshooting

If the IPsec connection fails after configuration, see Troubleshoot IPsec-VPN connections.

What's next

After the VPN route is configured, create a DTS task to start migrating or synchronizing data:

  1. When configuring data migration, data synchronization, or change tracking, select Express Connect, VPN Gateway, or Smart Access Gateway as the access method.

  2. Select the VPC connected to your on-premises database.

  3. Specify the on-premises database as the source or destination.

For supported scenarios, see Data synchronization scenarios or Data migration scenarios.