Managing Dedicated WAF Engines
This topic describes how to manage your dedicated WAF instances (or engines), including viewing instance information, viewing instance monitoring configurations, upgrading the instance edition, or deleting an instance.
If you have enabled enterprise projects, ensure that you have all operation permissions for the project where your WAF instances locate. Then, you can select the project from the Enterprise Project drop-down list and manage dedicated WAF instances in the project.
Prerequisites
- You have purchased a dedicated WAF instance.
- Your login account has the IAM ReadOnly permission.
Dedicated Engine Version Iteration
Engine Version |
Feature |
---|---|
202410 |
|
202408 |
Fixed known issues. |
202407 |
|
202405 |
|
202312 |
|
202308 |
|
202305 |
|
202211 |
|
202209 |
|
202207 |
|
202205 |
Configuring the earliest TLS version based on instances is supported. |
202204 |
|
202202 |
The request logging methods are optimized. |
202201 |
Some regular expression matching rules are optimized. |
202111 |
|
202110 |
The performance of some functions is improved. |
202109 |
|
202106 |
|
Viewing Information About a Dedicated WAF Instance
- Log in to the management console.
- Click in the upper left corner of the management console and select a region or project.
- Click in the upper left corner, select a region, and choose Security & Compliance > Web Application Firewall to go to the Dashboard page.
- In the navigation pane on the left, choose Instance Management > Dedicated Engine to go to the dedicated WAF instance page.
Figure 1 Dedicated engine list
- View information about a dedicated WAF instance. Table 1 describes parameters.
Table 1 Key parameters of dedicated WAF instances Parameter
Description
Example Value
Instance Name
Name automatically generated when an instance is created.
None
Protected Website
Domain name of the website protected by the instance.
www.example.com
VPC
VPC where the instance resides
vpc-waf
Subnet
Subnet where an instance resides
subnet-62bb
IP Address
IP address of the subnet in the VPC where the WAF instance is deployed.
192.168.0.186
Access Status
Connection status of the instance.
Accessible
Running Status
Status of the instance.
Running
Version
Dedicated WAF version.
202304
Deployment
How the instance is deployed.
Standard mode (reverse proxy)
Specifications
Specifications of resources hosting the instance.
8 vCPUs | 16 GB
Viewing Metrics of a Dedicated WAF Instance
When a WAF instance is in the Running status, you can view the monitored metrics about the instance.
- Log in to the management console.
- Click in the upper left corner of the management console and select a region or project.
- Click in the upper left corner, select a region, and choose Security & Compliance > Web Application Firewall to go to the Dashboard page.
- In the navigation pane on the left, choose Instance Management > Dedicated Engine to go to the dedicated WAF instance page.
Figure 2 Dedicated engine list
- In the row of the instance, click Cloud Eye in the Operation column to go to the Cloud Eye console and view the monitoring information, such as CPU, memory, and bandwidth.
Upgrading a Dedicated WAF Instance
Only dedicated WAF instances in the Running status can be upgraded to the latest version. Select an upgrade method based on the number of dedicated WAF instances you have.
If you have deployed only one dedicated WAF instance for your workloads, take the following steps to complete the upgrade:
- Apply for another dedicated WAF instance.
- The new dedicated WAF instance is of the latest version. So its Upgrade button is grayed out.
- The VPC, subnet, security group, and other settings of the new instance must be the same as those of the original one. In this way, the new instance automatically synchronizes all WAF protection configurations of the original instance.
- Run the curl command on any ECS in the VPC the original dedicated WAF instance locates to check whether the workloads are normal.
- HTTP workloads
curl http://IP-address-of-the-dedicated-WAF-instance:Service-port -H "host:Service-domain-name" -H "User-Agent: Test"
- HTTPS workloads
curl https://IP-address-of-the-dedicated-WAF-instance:Service-port -H "host:Service-domain-name" -H "User-Agent: Test"
Check whether the service is normal. If the service is normal, go to 3. If the service is abnormal, rectify the fault by referring to Why Is the Access Status of a Domain Name or IP Address Inaccessible? and How Do I Troubleshoot 404/502/504 Errors?. After the fault is fixed, go to 3.
To run a curl command, your server must meet the following requirements:- The network communication is normal.
- A curl command line tool has been installed. curl must be manually installed on the host running the Windows operating system. curl is installed along with other operating systems.
- HTTP workloads
- Add the new dedicated WAF instance to the backend server group of the ELB load balancer you are using.
The following uses a shared load balancer to show how to add an instance to a backend server group.
- Click in the upper left corner, select a region, and choose Security & Compliance > Web Application Firewall to go to the Dashboard page.
- In the navigation pane on the left, choose Instance Management > Dedicated Engine to go to the dedicated WAF instance page.
- In the row containing the instance you want to upgrade, click More > Add to ELB in the Operation column.
- In the Add to ELB dialog box, specify ELB (Load Balancer), ELB Listener, and Backend Server Group you configure for the original dedicated instance.
- Click Confirm. Then, configure service port for the WAF instance. In this example, configure Backend Port to the one we configured for the original dedicated instance.
- On the ELB console, set the weight of the original dedicated instance to 0. For details, see Changing Backend Server Weights.
Requests are not forwarded to a backend server if its weight is set to 0.
- Delete the original dedicated WAF instance during off-peak hours.
You can view metrics of the dedicated WAF instance on Cloud Eye. If the number of new connections is small (for example, less than 5), your workloads have decreased.
- In the navigation pane on the left on the WAF console, choose Instance Management > Dedicated Engine to go to the dedicated WAF instance page.
- In the row of the instance, click More > Delete in the Operation column.
- Click Confirm.
Resources on deleted instance are released and cannot be restored.
If you have deployed multiple dedicated WAF instances for your workloads, take the following steps to upgrade them:
- On the ELB console, obtain the weight of a dedicated instance and then change the weight to 0. For details, see Changing Backend Server Weights.
Requests are not forwarded to a backend server if its weight is set to 0.
- Upgrade the dedicated WAF instance during off-peak hours.
You can view metrics of the dedicated WAF instance on Cloud Eye. If the number of new connections is small (for example, less than 5), your workloads have decreased.
- In the navigation pane on the left on the WAF console, choose Instance Management > Dedicated Engine to go to the dedicated WAF instance page.
- In the row containing the instance you want to upgrade, click Upgrade in the Operation column.
- Confirm the upgrade conditions and click Confirm.
It takes about 5 minutes for the upgrade.
- Run the curl command on any ECS in the VPC the dedicated WAF instance locates to check whether the workloads are normal.
- HTTP workloads
curl http://IP-address-of-the-dedicated-WAF-instance:Service-port -H "host:Service-domain-name" -H "User-Agent: Test"
- HTTPS workloads
curl https://IP-address-of-the-dedicated-WAF-instance:Service-port -H "host:Service-domain-name" -H "User-Agent: Test"
Check whether the service is normal. If the service is normal, go to 4. If the service is abnormal, rectify the fault by referring to Why Is the Access Status of a Domain Name or IP Address Inaccessible? and How Do I Troubleshoot 404/502/504 Errors?. After the fault is fixed, go to 3.
To run a curl command, your server must meet the following requirements:- The network communication is normal.
- A curl command line tool has been installed. curl must be manually installed on the host running the Windows operating system. curl is installed along with other operating systems.
- HTTP workloads
- On the ELB console, change the weight of the dedicated instance from 0 to the one you obtain in 1. For details, see Configuring Weights for Backend Servers.
- Upgrade other dedicated WAF instances one by one by referring to 1 to 4.
Rolling Back a Dedicated WAF Instance
The version can be rolled back only to the original version.
- Log in to the management console.
- Click in the upper left corner of the management console and select a region or project.
- Click in the upper left corner, select a region, and choose Security & Compliance > Web Application Firewall to go to the Dashboard page.
- In the navigation pane on the left, choose Instance Management > Dedicated Engine to go to the dedicated WAF instance page.
- In the row of the instance, click More > Roll Back in the Operation column.
- In the dialog box displayed, confirm that the following conditions are met and select the following three conditions. Then, click Confirm.
An instance can be rolled back only when the following conditions are met:
- Multiple active instances are available or no services are connected to the instance.
- ELB HTTP/HTTPS health check has been enabled.
- ELB sticky session has been disabled.
Change Security Group for a Dedicated WAF Instance
If you select Network Interface for Instance Type, you can change the security group to which your dedicated instance belongs. After you select a security group, the WAF instance will be protected by the access rules of the security group.
- Log in to the management console.
- Click in the upper left corner of the management console and select a region or project.
- Click in the upper left corner, select a region, and choose Security & Compliance > Web Application Firewall to go to the Dashboard page.
- In the navigation pane on the left, choose Instance Management > Dedicated Engine to go to the dedicated WAF instance page.
Figure 3 Dedicated engine list
- In the row containing the instance, choose More > Change Security Group in the Operation column.
- In the dialog box displayed, select the new security group and click Confirm.
Deleting a Dedicated WAF Instance
You can delete a dedicated WAF instance at any time. After it is deleted, the billing ends.
Resources on deleted instance are released and cannot be restored. Exercise caution when performing this operation.
- Log in to the management console.
- Click in the upper left corner of the management console and select a region or project.
- Click in the upper left corner, select a region, and choose Security & Compliance > Web Application Firewall to go to the Dashboard page.
- In the navigation pane on the left, choose Instance Management > Dedicated Engine to go to the dedicated WAF instance page.
Figure 4 Dedicated engine list
- In the row of the instance, click More > Delete in the Operation column.
- In the displayed dialog box, enter DELETE and click OK.
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