Configuring Public Access

To access a Kafka instance over a public network, enable public access and configure EIPs for the instance.

If you no longer need public access to the instance, you can disable it as required.

Procedure

  1. Log in to the management console.

  2. Click image1 in the upper left corner to select a region.

    Note

    Select the region where your Kafka instance is located.

  3. Click Service List and choose Application > Distributed Message Service. The Kafka instance list is displayed.

  4. Click a Kafka instance to go to the Basic Information tab page.

  5. Configure public access.

    Note

    • You can change the public access setting only when the Kafka instance is in the Running state.

    • Only IPv4 EIPs can be bound to Kafka instances.

    Enabling public access

    Click image2 next to Public Access to enable public access. For Elastic IP Address, select an EIP for each broker and then click image3.

    You can view the operation progress on the Background Tasks page. If the task status is Successful, the modification has succeeded.

    **Figure 1** Configuring public access

    Figure 1 Configuring public access

    After public access is enabled, configure security group rules listed in Table 1 before attempting to access Kafka. For details about accessing Kafka, see Accessing a Kafka Instance.

    Table 1 Security group rules

    Direction

    Protocol

    Port

    Source

    Description

    Inbound

    TCP

    9094

    0.0.0.0/0

    Access Kafka through the public network (without SSL encryption).

    Inbound

    TCP

    9095

    0.0.0.0/0

    Access Kafka through the public network (with SSL encryption).

    Disabling public access

    Click image4 next to Public Access.

    You can view the operation progress on the Background Tasks page. If the task status is Successful, the modification has succeeded.