If your service servers are deployed on the cloud, you can add the domain name or IP address of the website to WAF so that the website traffic is forwarded to WAF for inspection.
If you have enabled enterprise projects, you can select your enterprise project from the Enterprise Project drop-down list and add websites to be protected in the project.
You have applied for a dedicated WAF instance.
Before adding a domain name or IP address, obtain the information listed in Table 1.
Information |
Parameter |
Description |
Example Value |
---|---|---|---|
Parameters |
Protected Website |
|
www.example.com |
Protected Port |
The service port corresponding to the domain name of the website you want to protect.
|
80 |
|
Client Protocol |
Protocol used by a client (for example, a browser) to access the website. WAF supports HTTP and HTTPS. |
HTTP |
|
Server Protocol |
Protocol used by WAF to forward requests to the client (such as a browser). The options are HTTP and HTTPS. |
HTTP |
|
VPC |
Select the VPC to which the dedicated WAF instance belongs. |
vpc-default |
|
Server Address |
Private IP address or domain name of the website server that a client (for example, a browser) accesses |
192.168.1.1 |
|
(Optional) Certificate |
Certificate Name |
If you set Client Protocol to HTTPS, you are required to configure a certificate on WAF and associate the certificate with the domain name. NOTICE:
Only .pem certificates can be used in WAF. If a certificate is not in .pem, convert it by referring to How Do I Convert a Certificate into PEM Format?. |
None |
Parameter |
Description |
Example Value |
---|---|---|
Website Name |
Website name you specify. |
WAF-DT |
Protected Object |
A domain name or IP address of the website to be protected. The domain name can be a single domain name or a wildcard domain name.
|
Single domain name: www.example.com Wildcard domain name: *.example.com IP address format: XXX.XXX.1.1 |
Website Remarks |
Brief description of the website |
test |
Protected Port |
Select the port that needs to be protected from the drop-down list box. To protect port 80 or 443, select Standard port from the drop-down list. |
Standard ports |
Server Configuration |
Address of the web server. The configuration contains the Client Protocol, Server protocol, VPC, Server Address, and Server Port.
|
Client Protocol: HTTP Server Protocol: HTTP VPC: vpc-default Server Address: 192.168.1.1 Server Port: 80 |
Certificate Name |
If you set Client Protocol to HTTPS, an SSL certificate is required. You can select an existing certificate or import an external certificate. For details about how to import a certificate, see Importing a New Certificate. For details about how to create a certificate, see Uploading a Certificate. NOTICE:
|
- |
If your website has no layer-7 proxy server such as CDN and cloud acceleration service deployed in front of WAF and uses only layer-4 load balancers (or NAT), set Proxy Configured to No. Otherwise, Proxy Configured must be set to Yes. This ensures that WAF obtains real IP addresses of website visitors and takes protective actions configured in protection policies.
You can select a policy you configured. You can also customize rules after the domain name is connected to WAF.
System-generated policies:
The basic web protection defends against attacks such as SQL injections, XSS, remote overflow vulnerabilities, file inclusions, Bash vulnerabilities, remote command execution, directory traversal, sensitive file access, and command/code injections.
WAF only logs web scanning tasks, such as vulnerability scanning and virus scanning, such as crawling behavior of OpenVAS and Nmap.
Log only: WAF only logs detected attack events instead of blocking them.
To enable WAF protection, there are still several steps, including configuring a load balancer, binding an EIP to the load balancer, and whitelisting WAF IP addresses. You can click Later in this step. Then, follow the instructions and finish those steps by referring to Step 2: Configure a Load Balancer and Step 3: Bind an EIP to a Load Balancer.
The initial Access Status of a website is Inaccessible. After you configure a load balancer and bind an EIP to the load balancer for your website, when a request reaches the WAF dedicated instance, the access status automatically changes to Accessible.
If you set Client Protocol to HTTPS, an SSL certificate is required. You can perform the following steps to import a new certificate.
WAF encrypts and saves the private key to keep it safe.
Format |
Conversion Method |
---|---|
CER/CRT |
Rename the cert.crt certificate file to cert.pem. |
PFX |
|
P7B |
|
DER |
|