Advanced
Тема интерфейса

Configuring RabbitMQ Public Access

To access a RabbitMQ 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.

In comparison with intra-VPC access, packet loss and jitter may occur and the access delay increases during public access. Therefore, you are advised to enable public access to RabbitMQ instances only during the service development and testing phase.

Notes and Constraints

The RabbitMQ console only supports IPv4 EIPs. IPv6 EIPs are not supported.

Prerequisite

  • The instance must be in the Running state.

Enabling Public IPv4 Access

  1. Log in to the console.
  2. Click in the upper left corner to select the region where your instance is located.
  3. Click and choose Application > Distributed Message Service for RabbitMQ to open the console of DMS for RabbitMQ.
  4. Click the desired instance to view its details.
  5. Click next to Public Access.
  6. Select an EIP from the Elastic IP Address drop-down list and click .

    If no EIP exists in the Elastic IP Address drop-down list box, click Create Elastic IP to create an EIP on the page that is displayed. After the EIP is created, return to the RabbitMQ console, click next to Elastic IP Address, and select the new EIP from the drop-down list.

    It takes 10–30s to enable public access. After public access is enabled, the Background Tasks page is displayed. If the task status is Successful, public access is enabled successfully.

  7. Set the security group rules listed in Table 1 for the RabbitMQ instance so that you can access RabbitMQ using the IPv4 EIP.

    Table 1 Security group rules

    Direction

    Type

    Protocol

    Port

    Source

    Description

    Inbound

    IPv4

    TCP

    5672

    IP address or IP address group of the RabbitMQ client

    Accessing a RabbitMQ instance at an IPv4 address on a client (without SSL)

    Inbound

    IPv4

    TCP

    5671

    IP address or IP address group of the RabbitMQ client

    Accessing a RabbitMQ instance at an IPv4 address on a client (with SSL)

    Inbound

    IPv4

    TCP

    15672

    IP address or IP address group of the RabbitMQ client

    Accessing the management UI (without SSL)

    Inbound

    IPv4

    TCP

    15671

    IP address or IP address group of the RabbitMQ client

    Accessing the management UI (with SSL)

Disabling Public IPv4 Access

  1. Log in to the console.
  2. Click in the upper left corner to select the region where your instance is located.
  3. Click and choose Application > Distributed Message Service for RabbitMQ to open the console of DMS for RabbitMQ.
  4. Click the desired instance to go to the instance details page.
  5. Click next to Public Access.
  6. Click .

    It takes 10–30s to disable public access. After public access is disabled, the Background Tasks page is displayed. If the task status is Successful, public access is disabled successfully.