- Documentation
RDS for PostgreSQL
User guide
Data security
Managing the allowlist (new version)
Creating an allowlist
Managing the allowlist (new version)
Creating an allowlist
Creating an allowlist
This topic describes how to manually add the client IP address or IP address range to the allowlist to successfully access the PostgreSQL instance.
- Allowlist is a security prevention and control method for database connections, only IP addresses in the allowlist can access the database. After a PostgreSQL instance is created, it will not be associated with any allowlist, and all IP addresses are prohibited from accessing the instance by default. Therefore, whether you access the instance through a private network or a public network connection, you need to configure an allowlist for the instance to ensure that the instance can be connected.
- The allowlist supports setting IP address segments in CIDR format, such as: 192.168.0.0/24 (any integer between 1 and 32 can be entered after (/)), allowing access by IP addresses in this network segment.
- The allowlist needs to be maintained regularly to remove IP addresses that are no longer needed to access the PostgreSQL instance to ensure the security of database connections.
- If 0.0.0.0/0 is set, the instance will allow access from all addresses. If 127.0.0.1 is set, access from all addresses will be disabled. If both 0.0.0.0/0 and 127.0.0.1 are set, access is allowed from all addresses.
- Each tenant can create up to 500 allowlists for PostgreSQL under each region.
- Each allowlist can contain up to 300 IP addresses or IP address ranges.
- Each allowlist can be associated with up to 1,000 instances.
- Each instance can associate up to 100 allowlists.
- The total number of IP addresses or IP address segments in all allowlists associated to each instance cannot exceed 300. When there are many IP addresses, it is recommended to merge scattered IP addresses into IP address segments.
- It is forbidden to add IP addresses in the form x.x.x.x/0 other than 0.0.0.0/0 to the allowlist.
- In the upper left corner of the top menu bar, select the region to which the allowlist belongs.
- Click Allowlists on the left navigation bar, click Create allowlist to enter the Create allowlist page.
- After completing the following settings on the Create allowlist page that pops up, click OK.
Last updated: 2026.01.19 21:26:38