To set up a WAF console, follow these steps:
Log on to the Alibaba Cloud console.
Click Web Application Firewall service under Security.
Click Domain Name Configuration to view the domain list.
Enter a Domain name and Origin’s IP, and then select Protocol type.
- The domain name option supports the use of wildcards. For example, “*.nice2meetu.top” can be used to match “www.nice2meetup.top”, “mail.nice2meetu.top”, and “blog.nice2meetu.top”.
- If the Protocol type is HTTPS, the associated SSL certificate and private key is required (see how to upload these items in the following section).
- Up to 20 IPs can be added to one origin for load balancing. Multiple origins are load balanced based on the IP hash algorithm.
- If you have layer-7 proxies in front of the WAF, such as Anti-DDoS and CDN, check Yes for the proxy option. Then, the WAF can obtain the real client IP.
Click Add Domain. A new entry is added to the list with a CNAME generated by the WAF.
Click Upload Certificate under the domain to be configured.
Generate your certificate and private key as plain text and paste them separately into the corresponding text areas on the upload page.
Private key example:
-----BEGIN RSA PRIVATE KEY-----
-----END RSA PRIVATE KEY-----