Transparent proxy mode FAQ
Common questions about adding a domain name to Web Application Firewall (WAF) in transparent proxy mode.
Before you add a domain name
Can I use CNAME record mode and transparent proxy mode for the same domain name?
No. Each domain name supports only one access mode. If your domain name is already added in CNAME record mode, delete the CNAME record configuration first, then add it in transparent proxy mode.
The first time you add an instance to WAF, web services may be interrupted for several seconds. If clients support automatic reconnection, web services resume automatically. Configure reconnection mechanisms and back-to-origin settings based on your business requirements.
My domain name points to multiple SLB instances. How do I add it to WAF in transparent proxy mode?
Add the HTTP and HTTPS ports of all SLB instances to WAF when you configure traffic redirection. This makes sure traffic on all ports is redirected to WAF.
If you add ports from only one SLB instance, WAF protects traffic on those ports only. Traffic from the other SLB instances bypasses WAF.
Why can't I find the Layer 7 SLB instance I want to add to WAF?
Transparent proxy mode has requirements for supported instances. If you cannot find your Internet-facing SLB instance on the Layer 7 SLB-based Domains tab of the Add Domain Name page, or if the addition fails, check the table below for the cause and solution.
| Reason | Description | Solution |
|---|---|---|
| Unsupported region | Transparent proxy mode supports only these regions: China (Chengdu), China (Beijing), China (Zhangjiakou), China (Hangzhou), China (Shanghai), China (Shenzhen), China (Hong Kong), Malaysia (Kuala Lumpur), and Indonesia (Jakarta). | Select the correct WAF instance region: Chinese Mainland for instances in China (Chengdu), China (Beijing), China (Zhangjiakou), China (Hangzhou), China (Shanghai), and China (Shenzhen); Outside Chinese Mainland for instances in China (Hong Kong), Malaysia (Kuala Lumpur), and Indonesia (Jakarta). |
| IPv6 address | Internet-facing SLB instances with IPv6 addresses are not supported. | Use an Internet-facing SLB instance with an IPv4 address. |
| No listener port configured | SLB instances without listener ports cannot be added to WAF. | Add a listener port in the SLB console first. |
| Network architecture limits | Only SLB instances without network architecture limits can be added. | Use an internal-facing SLB instance associated with an elastic IP address (EIP), or a new Internet-facing SLB instance. |
| SSL certificate not in Certificate Management Service | For Layer 7 Internet-facing SLB instances, the SSL certificate for each HTTPS port must be uploaded to Certificate Management Service before WAF can synchronize it. | Upload the SSL certificate for the HTTPS port to Certificate Management Service. |
| Mutual authentication enabled | Internet-facing SLB instances with HTTPS mutual authentication enabled are not supported. | Disable mutual authentication in the SLB console, then add the instance to WAF in the WAF console. |
| New SLB instance | New instances may not appear immediately due to data latency. | Wait 1 to 3 minutes after purchasing the SLB instance, then refresh the WAF console. |
| Unsupported port for the current WAF edition | Transparent proxy mode is supported on Pro Edition, Business Edition, and Enterprise Edition subscription instances. Enterprise Edition supports non-standard ports. If the port is not supported, the configuration cannot be saved. | Specify a port supported by your WAF edition. Click View Allowed Port Range on the Layer 7 SLB-based Domains tab to see supported ports. |
| ECS zone changed after migration | If a migration task changes the zone of an ECS instance already added to WAF, traffic redirection stops working. | Re-enable traffic redirection in the WAF console. For details, see the "Step 2: View and manage traffic redirection ports" section of the Transparent proxy mode topic. |
Can I add an internal-facing SLB instance associated with an EIP to WAF in transparent proxy mode?
Yes. Internal-facing SLB instances associated with elastic IP addresses (EIPs) are supported in transparent proxy mode.
After you add a domain name
How do I stop WAF from protecting a domain name?
On the Website Access page, click the Servers tab and find the IP address of the origin server that hosts the domain name. Then disable traffic redirection for the ports used to redirect traffic to WAF. For details, see the "Step 2: View and manage traffic redirection ports" section of the Transparent proxy mode topic. After you disable traffic redirection, requests to the domain name are no longer forwarded through WAF.
Does the origin server receive the real client IP addresses in transparent proxy mode?
Yes. WAF passes the originating IP addresses of clients to the origin server and does not send its own back-to-origin CIDR blocks to the origin server.
If I update the SSL certificate bound to a port, do I need to re-upload it in the WAF console?
It depends on where your origin server is deployed:
Application Load Balancer (ALB) or Layer 7 Server Load Balancer (SLB): Update the certificate in the ALB or SLB console. The new certificate is automatically synchronized to WAF — no action needed in the WAF console.
ImportantExpired certificates cannot be synchronized to WAF. Delete the expired certificate first, then synchronize the new one.
Layer 4 SLB or Elastic Compute Service (ECS): Re-upload the certificate in the WAF console.
Multiple domain names point to the same SLB instance. What happens if I add only one of them to WAF?
All domain names pointing to that SLB instance are protected by WAF's default protection rules, including the Protection Rules Engine and HTTP flood protection. WAF detects and blocks malicious traffic destined for all those domain names.
In transparent proxy mode, WAF protection is determined by the traffic redirection port configuration of the ECS, SLB, or ALB instance — not by which domain name you specified when adding to WAF. If multiple domain names share the same port (for example, HTTPS port 443), specifying that port when adding one domain name ensures all traffic on that port is protected. For details, see Transparent proxy mode.