Website Connection Overview
To use Web Application Firewall (WAF) to protect your web services, connect the web services to WAF first. WAF provides cloud CNAME and dedicated access modes for you. You can select an appropriate access method based on how your web services are deployed.
Access Description
You can use the following access methods: cloud mode - CNAME access and dedicated mode access.
Cloud Mode
- How it works
In cloud mode, DNS routes the protected domain name to the CNAME record of WAF. The web services for the domain name are routed to WAF. WAF checks received traffic, filters malicious attack traffic, and returns normal traffic to the origin server over back-to-source IP addresses.
During this process, WAF works as a reverse proxy cluster. It checks and forwards traffic of the protected website.

- Applicable scenarios
Service servers are deployed on any cloud or in on-premises data centers.
- Protected objects
Domain names
Dedicated Mode
- How it works
In dedicated Mode, DNS routes the protected domain name to the EIP bound to the load balancer configured for the dedicated engine. In this way, the web service traffic for the domain name is routed to WAF. WAF detects and filters out malicious attack traffic and returns normal traffic to the origin server through back-to-source IP addresses or IP address ranges of the dedicated engine.
During this process, WAF works as a reverse proxy cluster. It forwards and checks traffic of the protected website.

- Applicable scenarios
Large enterprise websites with service servers deployed on Huawei Cloud and requiring custom protection rules.
- Protected objects
Domain names, public IP addresses, and private IP addresses
Constraints
There are some restrictions on using different access modes.
|
Item |
Cloud Mode - CNAME Access |
Dedicated Mode |
|---|---|---|
|
Domain name restrictions |
|
|
|
ELB load balancer restrictions |
-- |
Only dedicated ELB load balancers can be used for dedicated WAF instances. For details, see Load Balancer Types. |
|
Service edition restrictions |
|
-- |
|
Certificate restrictions |
|
|
|
Protocol restrictions |
|
WAF supports the WebSocket protocol, which is enabled by default. Only WebSocket requests can be forwarded. It is not supported during traffic detection. |
|
Protection policy restrictions |
A protected website domain name can use only one policy. |
A protected website domain name can use only one policy. |
|
Specification restrictions |
After your website is connected to WAF, you can upload a file no larger than 1 GB each time. |
After your website is connected to WAF, you can upload a file no larger than 1 GB each time. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.