Simple Message Queue (SMQ, formerly MNS) offers an access control feature that enables you to control all accesses from public endpoints to SMQ service. This feature allows you to configure rules to deny accesses from all IP addresses or allow accesses from only some IP addresses.
Overview
Disable Public Endpoint: You can access SMQ only over a virtual private cloud (VPC).
Enable Public Endpoint: Only clients whose IP addresses or Classless Inter-Domain Routing (CIDR) blocks are in the IP address whitelist can access SMQ service.
Supported regions
The access control feature is available in the China (Beijing), China (Shanghai), and China (Guangzhou) regions.
Create an IP address whitelist
Log on to the SMQ console. In the left-side navigation pane, click Access Control.
In the top navigation bar, select a region. Example: China (Beijing).
On the Access Control page, click Create an IP address whitelist on the Public Endpoint tab.
In the Create an IP address whitelist panel that appears, specify one or more IP addresses or CIDR blocks and click OK.
NoteSeparate multiple IP addresses or CIDR blocks with semicolons (;) or commas (,).
View an IP address whitelist
On the Access Control page, click the Public Endpoint tab.
You can view the IP addresses of public endpoints that are allowed to access SMQ in the IP Address Whitelist list.
Delete an IP address whitelist
On the Access Control page, click the Public Endpoint tab.
In the IP Address Whitelist list, locate the desired IP address or CIDR block and click Delete in the Actions column.
In the Delete IP Whitelist dialog box, click OK.
ImportantIf you delete an IP address or a CIDR block from the IP address whitelist, the client to which the IP address or the CIDR block belong is not allowed to access SMQ service. Proceed with caution.
Disable accesses over public endpoints
On the Access Control page, click the Public Endpoint tab.
Disable the Allow Access next to Access Control.
In the Are you sure you want to deny all accesses from the public IP address? dialog box, read the message that appears and click OK.
ImportantIf Allow Access is disabled, all access requests from public IP endpoints are blocked and an error code is returned. Proceed with caution.