WAF to add new back-to-origin CIDR blocks
Dear Alibaba Cloud customer,
Starting at 00:00:00 on May 28, 2026, Alibaba Cloud Web Application Firewall (WAF) will add the following back-to-origin CIDR blocks for services using CNAME access.
Chinese Mainland:
47.109.121.0/24, 8.137.30.0/24, 2408:4006:1281:2100::/56
Outside Chinese Mainland:
8.221.179.0/24, 8.209.48.128/25, 8.213.181.0/24, 240b:4009:219:2100::/56, 240b:4001:2b6:f200::/56, 240b:400e:163:d00::/56, 240b:400b:60:a800::/56, 240b:4000:14:3200::/56, 240b:4005:19b:9300::/56, 240b:4004:cc:2a00::/56
Impact
WAF 3.0: This change affects customers who use CNAME access for their domain names and have configured an allowlist for WAF back-to-origin CIDR blocks on their origin servers, for example, in the security group of an ECS instance. This change does not affect customers who use the cloud product access mode.
WAF 2.0: This change affects customers who use CNAME access for their domain names and have configured an allowlist for WAF back-to-origin CIDR blocks on their origin servers, for example, in the security group of an ECS instance. This change does not affect customers who use the transparent access mode.
Required action
To prevent service disruptions from this update, you must add the new back-to-origin CIDR blocks to the allowlist on your origin server. Follow the steps below:
WAF 3.0
Log on to the WAF 3.0 console. In the top navigation bar, select the resource group and region (Chinese Mainland or Outside Chinese Mainland) of your WAF instance.
In the left-side navigation pane, click Onboarding. On the CNAME Record tab, click Back-to-origin CIDR Blocks on the right.
In the Back-to-origin CIDR Block dialog box, click Copy to copy all WAF back-to-origin CIDR blocks to your clipboard.
NoteThe copied back-to-origin CIDR blocks are separated by commas (,). The list includes IPv6 addresses, such as 2408:400a:3c:xxxx::/56.
Add the copied CIDR blocks to the allowlist on your server's firewall. For example, if your origin server is an Alibaba Cloud ECS instance, add them to its security group. For more information, see Add a security group rule.
WAF 2.0
-
Log on to the Web Application Firewall (WAF) console. In the top menu bar, select the resource group and region for your WAF instance: Chinese Mainland or Outside Chinese Mainland.
In the left-side navigation pane, choose .
On the Service Information page, in the Back-to-origin CIDR Block section in the lower-right corner, click Copy All IP Addresses.
NoteThe copied back-to-origin CIDR blocks are separated by commas (,). The list includes IPv6 addresses, such as 2408:400a:3c:xxxx::/56.
Add the copied CIDR blocks to the allowlist on your server's firewall. For example, if your origin server is an Alibaba Cloud ECS instance, add them to its security group. For more information, see Add a security group rule.
FAQ
Impact of an existing 0.0.0.0/0 rule
No. An inbound rule that allows traffic from the 0.0.0.0/0 CIDR block permits access from any IP address, so you do not need to add the new back-to-origin CIDR blocks.
Impact on cloud product or transparent access modes
No. The cloud product access mode and transparent access mode use a transparent proxy or an SDK-based architecture. These methods do not rely on traditional back-to-origin CIDR blocks, so you do not need to update any related policies.
View and configure ECS security group rules
Go to the ECS console - Security Groups page, and then click the ID of the target security group to open its details page.
On the security group details page, click the Inbound tab to view existing rules. To add a new rule, click Add Rule.
A single security group rule cannot contain both IPv4 and IPv6 addresses. You must create separate rules for each protocol:
Add an IPv4 rule: In the Create Security Group Rule panel, paste the copied CIDR blocks into the Source field. Manually remove all IPv6 addresses from the field. Set Destination (This Instance) to the back-to-origin port that you configured during CNAME access in the WAF console. Leave the other parameters at their default settings and click OK.
Add an IPv6 rule: Click Add Rule again, select IPv6 in the Source section, and add an IPv6 address block as described in the previous step.
Handling automated updates via OpenAPI
Update your configuration based on your service architecture:
Manual update: Before the change takes effect, manually call the OpenAPI operation to fetch the back-to-origin CIDR blocks. Synchronize the returned CIDR blocks with your security group or firewall policies.
Check automation scripts or scheduled tasks: If you have a scheduled task that automatically pulls and updates the allowlist, verify its execution schedule and status. Ensure that it will synchronize the latest CIDR blocks before the change takes effect.