What Data Is Required for Connecting a Domain Name/IP Address to WAF?
Collect required information before connecting a domain name or IP address to WAF based on the mode of WAF instance you plan to buy.
- Cloud mode
Table 1 Domain name information required Information
Parameter
Description
Example Value
Whether a proxy is used for the domain name
N/A
Check whether advanced anti-DDoS or CDN are deployed in front of WAF.
N/A
Parameters
Domain Name
The domain name is used by visitors to access your website. A domain name consists of letters separated by dots (.). It is a human readable address that maps to the machine readable IP address of your server.
www.example.com
Standard/Non-standard Port
The service port corresponding to the domain name of the website you want to protect.
- Standard ports
- 80: default port when the client protocol is set to HTTP
- 443: default port when the client protocol is set to HTTPS
- Non-standard ports NOTICE:
If your website uses a non-standard port, check whether the WAF edition you plan to buy can protect the non-standard port before you make a purchase. For details, see Which Non-Standard Ports Can WAF Protect?
80
Client Protocol
Protocol used by a client (for example, a browser) to access a 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
Server Address
Public IP address or domain name of the origin server for a client (such as a browser) to access. Generally, a public IP address maps to the A record of the domain name configured on the DNS, and a domain name to the CNAME record.
XXX.XXX.1.1
(Optional) Certificate
-
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 your certificate is not in PEM format, convert the certificate format by referring to How Do I Convert a Non-PEM Certificate to a PEM One?
None
- Standard ports
- Dedicated mode
Table 2 Domain name or IP address details required Information
Parameter
Description
Example Value
Parameters
Domain Name/IP Address
- Domain name: used by visitors to access your website. A domain name consists of letters separated by dots (.). It is a human readable address that maps to the machine readable IP address of your server.
- IP: IP address of the website.
www.example.com
Standard/Non-standard Port
The service port corresponding to the domain name of the website you want to protect.
- Standard ports
- 80: default port when the client protocol is set to HTTP
- 443: default port when the client protocol is set to HTTPS
- Non-standard ports
Ports other than ports 80 and 443
NOTICE:If your website uses a non-standard port, check whether the WAF edition you plan to buy can protect the non-standard port before you make a purchase. For details, see Which Non-Standard Ports Can WAF 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
None
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 your certificate is not in PEM format, convert the certificate format by referring to How Do I Convert a Non-PEM Certificate to a PEM One?
- Currently, certificates purchased in HUAWEI CLOUD SCM can be pushed only to the default enterprise project. For other enterprise projects, SSL certificates pushed by SCM cannot be used.
None
- ELB mode
Table 3 Domain name or IP address details required Parameter
Description
Example Value
Domain Name/IP Address
- Domain name: used by visitors to access your website. A domain name consists of letters separated by dots (.). It is a human readable address that maps to the machine readable IP address of your server.
- IP: IP address of the website.
www.example.com
Standard/Non-standard Port
The service port corresponding to the domain name of the website you want to protect.
- Standard ports
- 80: default port when the client protocol is set to HTTP
- 443: default port when the client protocol is set to HTTPS
- Non-standard ports
Ports other than ports 80 and 443. This port must be the same as the listener port you configured for the ELB load balancer you use for WAF.
NOTICE:To configure a non-standard port for the domain name, check whether the WAF edition you plan to buy can protect the non-standard port before you make a purchase. For details, see Which Non-Standard Ports Can WAF Protect?
80
- Port: the service port corresponding to the domain name to be protected.
The non-standard ports (except 80 and 443) you configured must be supported by WAF. For details, see Which Non-Standard Ports Does WAF Support?
- Server information
- Client Protocol: protocol used by a client to access a server.
- Server Protocol: protocol over which WAF forwards client requests to the server.
- Server Address: IP address or domain name of the web server for client-side access.
- Server Port: service port of the server to which WAF client requests are forwarded.
- Certificate: If HTTPS is set for Client Protocol, purchase a certificate for the domain name and push the certificate to WAF.
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.