This topic describes the relationship between Web Application Firewall (WAF) 2.0 and WAF 3.0, their differences, and how to get started with WAF.
What is WAF?
WAF protects your websites and applications by detecting and blocking malicious service traffic. WAF inspects and filters all incoming traffic, forwarding only legitimate requests to the origin server. This process prevents issues, such as performance degradation caused by malicious intrusions, and ensures the security of your services and data.
Relationship between WAF 2.0 and WAF 3.0
WAF 3.0 is the latest generation of WAF and an upgrade to WAF 2.0. The two versions have different underlying architectures, editions, console configurations, and user experiences. Therefore, they cannot coexist under the same Alibaba Cloud account ID. If you purchased a WAF 2.0 instance, you log on to the WAF 2.0 console. If you purchased a WAF 3.0 instance, you log on to the WAF 3.0 console.
The release of WAF 3.0 does not affect users who have purchased and are using WAF 2.0. WAF 2.0 instances can still be used, renewed, or upgraded. The Service-Level Agreement (SLA) for WAF 2.0 remains in effect.
If you have a WAF 2.0 instance and want to upgrade to WAF 3.0, you can use the self-service migration tool to automatically migrate your WAF 2.0 instance to WAF 3.0. For more information, see Upgrade a WAF 2.0 instance to WAF 3.0.
Differences between WAF 2.0 and WAF 3.0
Connection types
WAF 2.0 supports canonical name (CNAME) and transparent proxy modes. WAF 3.0 adds a cloud native mode that integrates with cloud products, such as Application Load Balancer (ALB), in a cloud-native architecture. In the consoles of cloud products such as ALB, you can enable WAF security protection for your instances, including internal instances, with a single click. This eliminates the need for complex connection and forwarding configurations, such as modifying DNS records or configuring certificates, ports, and back-to-origin algorithms. This approach improves service performance and stability, and reduces access latency.
Connection type | Principle | WAF 3.0 | WAF 2.0 |
CNAME mode |
| Supported | Supported |
Cloud native mode (formerly transparent proxy mode) |
| Supported Note In WAF 3.0, the cloud native mode for CLB and ECS is the transparent proxy mode. | Supported |
Cloud native mode (new cloud-native architecture) |
| Supported | Not supported |
Mitigation settings
Feature | WAF 3.0 | WAF 2.0 |
Applicable objects | In WAF 3.0, you can configure mitigation policies for protected objects or protected object groups.
| In WAF 2.0, you can configure protection rules only for a single domain name. If you add an instance to WAF in transparent proxy mode, you must add each domain name of the instance to WAF separately to configure protection rules. Otherwise, all traffic is protected only by the default protection rules, which you cannot modify. |
Implementation | You create protection templates and add protection rules to the templates. You can then apply these templates to different protected objects. | You directly create protection rules for a specific domain name. |
Viewing method |
| You can view all protection rules that apply to a single domain name. |
Managing default protection rules | When you add a new protected object to WAF 3.0, basic protection is enabled by default. You can change the action of the default protection rule to Block or Allow. | When you add a new domain name to WAF 2.0, the Protection Rules Engine is enabled by default, but you cannot change the action of the default protection rules. You can specify a protection action only after you create custom protection rules for the domain name. |
Protection specifications |
|
|
Billing methods
Subscription
Difference | WAF 3.0 | WAF 2.0 | |
Editions |
| Supports Pro, Enterprise, and Ultimate editions. | |
Billable items | Traffic specifications | Unified as queries per second (QPS). You do not need to consider bandwidth. | Supports both QPS and bandwidth, which require conversion. |
Domain name specifications | Does not distinguish between primary domain names and subdomains. Fees are settled based on the number of connected domain names. | Distinguishes between primary domain names and subdomains. | |
Hybrid cloud connection | You can use the hybrid cloud connection feature after you purchase the Enterprise or Ultimate edition. | You must separately purchase the Hybrid Cloud WAF Exclusive edition. | |
Pay-as-you-go
Difference | WAF 3.0 | WAF 2.0 |
Supported regions | The Chinese mainland, outside the Chinese mainland | The Chinese mainland |
Metering unit | The unified metering unit is Security Capacity Unit (SeCU). 1 SeCU is billed at USD 0.01. | None. |
Aggregation Method |
| You can use a feature only after you enable it. Billing starts after you enable a feature and stops after you disable it. |
Get started with WAF
References | WAF 3.0 | WAF 2.0 | |
Learn about WAF | |||
Activate WAF | New purchases are not supported | ||
Connect to WAF |
| ||
Use WAF | View domain name assets | ||
Use WAF for protection |
|
| |
Configure monitoring and alerting | |||
View protection data | |||
API operations | |||