If you need to access other Alibaba Cloud services in other regions by using a connector, you must enable Internet access for the connector. This topic describes how to enable Internet access for a connector.

Prerequisites

Before you enable Internet access for a connector, ensure that the connector is enabled in your Message Queue for Apache Kafka instance. For more information, see Enable the connector feature.

Enable Internet access

The following figure shows the solution for enabling Internet access for a connector.

Solution for enabling Internet access for a connector

Complete the following steps to enable Internet access for a connector:

  1. Create a NAT Gateway for virtual private cloud (VPC) 1 where the Message Queue for Apache Kafka instance is deployed.
    For more information, see Create a NAT gateway.
  2. Bind an elastic IP address (EIP) to the created NAT Gateway.
    For more information, see Associate an EIP with a NAT gateway.
  3. Create SNAT entries for the VSwitch that is used by the Message Queue for Apache Kafka instance on VPC 1.
    For more information, see Create a SNAT entry.