Simple Message Queue (formerly MNS) provides access control for public endpoints to control whether clients can connect to the Simple Message Queue (formerly MNS) service. You can configure rules to deny all requests from public endpoints or allow access only from specific IP addresses.
How it works
Disable public access: You can disable public access and allow connections only from a Virtual Private Cloud (VPC).
Allow access from specific IP addresses: When public access is enabled, only IP addresses or CIDR blocks in the ip address whitelist can access the public endpoint.
Supported regions
The access control feature is currently available only in the China (Beijing), China (Shanghai), and China (Guangzhou) regions.
Add to the IP 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, on the Public Endpoint tab, click Create an IP address whitelist.
In the Create an IP address whitelist panel, enter one or more IP addresses or CIDR blocks, and then click OK.
NoteYou can add multiple IP addresses or CIDR blocks at a time. Separate them with semicolons (;) or commas (,).
View the IP whitelist
On the Access Control page, click the Public Endpoint tab.
The IP Address Whitelist list shows the whitelisted IP addresses for the current public endpoint.
Delete from the IP whitelist
On the Access Control page, click the Public Endpoint tab.
In the IP Address Whitelist list, find the target IP address or CIDR block, and then click Delete in the Action column.
In the Delete IP Whitelist dialog box, click OK.
ImportantAfter an IP address is removed from the ip address whitelist, the corresponding client can no longer connect to the Simple Message Queue (formerly MNS) service. Please proceed with caution.
Disable public access
On the Access Control page, click the Public Endpoint tab.
Turn off the Allow Access switch next to Access Control.
In the Are you sure you want to deny all accesses from the public IP address? dialog box, click OK.
ImportantAfter you disable public access, the system blocks all requests from public endpoints and returns an error. Proceed with caution.