Updated on 2023-05-12 GMT+08:00

Configuring Public Access

Scenario

Enable public access to a RabbitMQ instance so that you can access the instance over a public network. 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.

Prerequisites

Public access can be enabled only for RabbitMQ instances in the Running state.

Enabling Public Access

  1. Log in to the management console.
  2. In the upper left corner, click and select a region.

    Select the region where your RabbitMQ instance is.

  3. Click and choose Middleware > 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 10s to 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.

    After enabling public access, configure the following settings:
    • If SSL is not enabled, add an inbound rule to the security group, allowing access to ports 5672 and 15672.

      To access the RabbitMQ management plane, visit http://{public IP address of the RabbitMQ instance}:15672, and enter your username and password.

      To access the instance through clients, use port 5672.

    • If SSL is enabled, add an inbound rule to the security group, allowing access to ports 5671 and 15671.

      To access the RabbitMQ management plane, visit https://{public IP address of the RabbitMQ instance}:15671, and enter your username and password.

      To access the instance through clients, use port 5671.

Disabling Public Access

  1. Log in to the management console.
  2. In the upper left corner, click and select a region.

    Select the region where your RabbitMQ instance is.

  3. Click and choose Middleware > 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. Click .

    It takes 10s to 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.