Allowing WAF Back-to-Source IP Addresses to Access Origin Servers
Description
A back-to-source IP address is a source IP address used by WAF to forward client requests to origin servers. To origin servers, all web requests come from WAF, and all source IP addresses are WAF back-to-source IP addresses. The real client IP address is encapsulated into the HTTP X-Forwarded-For (XFF) header field. To make sure your cloud WAF work properly, configure ACL rules on your origin server to allow traffic only on all ports mapped to the WAF back-to-source IP addresses. This prevents hackers from directly attacking your origin server through its IP addresses.

- There will be more WAF back-to-source IP addresses due to service scale-out or use of new clusters. For your legacy domain names, WAF back-to-source IP addresses usually fall into several class C IP addresses (192.0.0.0 to 223.255.255.255) of two to four clusters.
- Generally, these IP addresses do not change unless clusters in use are changed due to disaster recovery switchovers or other scheduling switchovers. Even when WAF cluster is switched over on the WAF background, WAF will check the security group configuration on the origin server to prevent service interruptions.

Procedure
- Click
to copy all back-to-source IP addresses.
- Open the security software on the origin server and add the copied IP addresses to its IP address whitelist.
- If your origin servers are Huawei Cloud ECSs, see Whitelisting WAF IP Addresses on Origin Servers That Are Deployed on ECSs.
- If your website uses Huawei Cloud ELB, see Whitelisting WAF Back-to-Source IP Addresses on Origin Servers That Use Huawei Cloud ELB.
- If you also use Cloud Firewall (CFW) on Huawei Cloud, refer to Adding a Protection Rule.
- If your website is deployed on servers on other cloud vendors, whitelist the WAF IP addresses in the corresponding security group and access control rules.
- If only the personal edition antivirus software is installed on the origin server, the software does not have the interface for whitelisting IP addresses. If the origin server provides external web services, install the enterprise security software on or use Huawei Cloud Host Security Service (HSS) for the server. These products identify the sockets of some IP addresses with a large number of requests and occasionally disconnect the connections. Generally, the IP addresses of WAF are not blocked.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot