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
- Log in to the console.
- Click
in the upper left corner to select the region where your instance is located.
- Click
and choose Application > Distributed Message Service for RabbitMQ to open the console of DMS for RabbitMQ.
- Click the desired instance to view its details.
- Click
next to Public Access.
- 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.
- 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
- Log in to the console.
- Click
in the upper left corner to select the region where your instance is located.
- Click
and choose Application > Distributed Message Service for RabbitMQ to open the console of DMS for RabbitMQ.
- Click the desired instance to go to the instance details page.
- Click
next to Public Access.
- 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.
- Notes and Constraints
- Prerequisite
- Enabling Public IPv4 Access
- Disabling Public IPv4 Access