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.
- You can enable public access to a RabbitMQ instance only if its status is Running.
- 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.
- After enabling public access, configure the following settings:
- If SSL has been disabled:
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 has been 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.
- If SSL has been disabled:
Prerequisites
A RabbitMQ instance has been created.
Enabling Public Access
- Log in to the management console.
- In the upper left corner, click and select a region.
Select the same region as your application service.
- 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.
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.
Disabling Public Access
- Log in to the management console.
- In the upper left corner, click and select a region.
Select the same region as your application service.
- 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.
- 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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot