How Do I Connect the On-Premises Intranet or Third-Party Private Network to CDM?
- Bind the Internet IP addresses to the intranet data source nodes to enable CDM to access the data from the Internet directly.
- Establish a VPN between the on-premises data center and the VPC where the service resides.
- Use Direct Connect to connect the data center to the cloud service.
- Leverage Network Address Translation (NAT) or port forwarding to access the network in proxy mode.
- Use a Windows computer as the gateway. The computer must be able to access both the Internet and the intranet.
- Install the port mapping tool IPOP on the computer.
- Configure port mapping using the tool.
If the intranet database is exposed to the public network for a long time, security risks exist. Therefore, after data migration is complete, stop port mapping.
Scenario
Suppose that the MySQL database on the intranet is migrated to DWS. Figure 1 shows the network topology.
In the figure, the intranet can be either an enterprise's data center or the intranet of the virtual data center on a third-party cloud.
Procedure
- Use a Windows computer as the gateway. Configure both the intranet and Internet IP addresses on the computer. Conduct the following test to check whether the gateway computer can fulfill service needs.
- Run the ping command on the computer to check whether the intranet address of the MySQL database is pingable. For example, run ping 192.168.1.8.
- Run the ping command on another computer that can access the Internet to check whether the public network address of the gateway computer is pingable. For example, run ping 202.xx.xx.10.
- Download the port mapping tool IPOP and install it on the gateway computer.
- Run the port mapping tool and select PORT Map. See Figure 2.
- Local IP and Local Port: Configure these two parameters to the public network address and port number of the gateway computer respectively, which must be entered when creating MySQL links on CDM.
- Mapping IP and Map Port: Configure these two parameters to the IP address and port number of the MySQL database on the intranet.
- Click ADD to add a port mapping relationship.
- Click START to start mapping and receive data packets.
Then, you can use the EIP to read data from the MySQL database on the intranet on CDM and import the data to DWS.
- To access the on-premises data source, you must also bind an EIP to the CDM cluster.
- Generally, DWS is accessible within the same VPC. When creating a CDM cluster, you must ensure that the VPC of the CDM cluster must be the same as that of DWS. In addition, it is recommended that CDM and DWS be in the same intranet and security group. If their security groups are different, you also need to enable data access between the security groups.
- Port mapping can be used to migrate data between databases on the intranet or the SFTP servers.
- For Linux computers, port mapping can also be implemented using IPTABLE.
- When the FTP server on the intranet is mapped to the public network using port mapping, you need to check whether the PASV mode is enabled. In this case, the client and server are connected through a random port. Therefore, in addition to port 21 mapping, you also need to configure the port range mapping in PASV mode. For example, you can specify the vsftp port range by configuring pasv_min_port and pasv_max_port.


Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.