Protection policy
Cloud Firewall provides an Intrusion Prevention System (IPS) to perform real-time detection and interception on traffic at internet, NAT, and VPC boundaries. The IPS feature covers defense modules such as Basic Protection, Virtual Patching, Threat Intelligence, Intelligent Defense, Data Loss Prevention, and Traffic Traceability, and supports configuring an allowlist to permit traffic from trusted addresses. This topic describes how to configure the IPS feature for the boundary firewalls.
Go to the console
Log on to the Cloud Firewall console. In the navigation pane on the left, choose .
Features supported by each boundary firewall
NAT boundary firewalls now support the GWLB-native integration mode. Only NAT boundary firewall instances that use this mode support intrusion prevention system (IPS) capabilities. For more information, see NAT boundary firewall.
Feature/Protection module | Internet boundary firewall | NAT boundary firewall (GWLB-native integration mode only) | VPC boundary firewall |
Basic Protection | |||
Virtual Patching | |||
Threat Intelligence | |||
Intelligent Defense | |||
Data Leakage | |||
Traffic Traceability | |||
Allowlist |
Scope of prevention policies
Internet boundary firewall: All public assets protected by the internet boundary firewall share the same set of prevention policies.
NAT boundary firewall: Each NAT boundary firewall instance uses an independent set of prevention policies. The policies for different instances do not affect each other.
VPC boundary firewall:
Module switches and the threat engine mode are configured independently for each instance and take effect only on the current VPC boundary firewall instance.
The custom actions and enabled status of specific rules are global configurations. Modifications made to these settings for any instance will apply to all VPC boundary firewall instances.
Feature overview
Threat Engine Mode
The threat engine mode applies to internet boundary firewalls, NAT boundary firewalls, and VPC boundary firewalls. This feature centrally controls the actions for Basic Protection and Virtual Patching rules, eliminating the need for manual, rule-by-rule configuration.
The threat engine mode for each boundary firewall is configured as follows:
Internet boundary firewall: Block mode is enabled by default. The specific block level is automatically determined based on your actual traffic.
NAT boundary firewall: Uses the threat engine mode specified when the boundary firewall instance was created.
VPC boundary firewall: Uses the threat engine mode specified when the boundary firewall instance was created.
Procedure
On the IPS Configuration page, go to the tab for the corresponding boundary firewall. Click Configure Defense Module, and find the Threat Engine Mode section to configure the mode. The following modes are available:
Monitor Mode: Records and generates alerts for attacks but does not block them. This mode is suitable for initial service launches or highly sensitive business scenarios. Run in this mode for a period, analyze the logs, and switch to a block mode only after confirming that the false positive rate is acceptable.
Blocking Mode - Loose: Provides coarse-grained protection that covers rules with low false positive rates. This mode is suitable for business scenarios sensitive to false positives.
Blocking Mode - Medium: Offers a protection level between loose and strict with high precision. This mode is suitable for routine protection in daily operations.
Blocking Mode - Strict: Provides the most fine-grained protection, covering all rules. The false positive rate is relatively higher. This mode is suitable for scenarios with low tolerance for missed detections, such as during major events or security campaigns.
In addition to configuring the Threat Engine Mode, you can manually adjust specific rules in Basic Protection and Virtual Patching for fine-grained control. For detailed steps, see Basic Protection and Virtual Patching.
Basic Protection
Basic Protection provides fundamental intrusion prevention capabilities. It blocks command execution vulnerabilities, intercepts high-frequency attacks, and prevents infected devices from connecting to command and control (C&C) servers. Enable Basic Protection to enhance the security of your assets.
Procedure
On the IPS Configuration page, go to the tab for the corresponding boundary firewall. Click Configure Defense Module, and find the Basic Protection section to configure the settings.
Module switch: Use the switch to enable or disable this module.
Fine-tune rules: Click Rule Configuration. The following operations are supported.
Modify rule action: In the Current Action column for the target rule, adjust the rule action. The modified rule is marked as a Custom rule.
Enable or disable a rule: In the Status column for the target rule, adjust the rule status.
Restore default rule actions: Click Restore to Default IPS Rules/Restore All IPS Rules of VPC Firewall to reset the rule configurations to their default state.
NoteFor VPC boundary firewalls, if you modify the action or enabled status of any rule, the custom rule applies to all VPC boundary firewall instances.
Virtual Patching
Virtual Patching provides real-time protection against high-risk and zero-day vulnerabilities. This feature offers network-level protection for remotely exploitable high-risk and zero-day vulnerabilities. It blocks vulnerability exploits in real time, preventing business disruptions that might occur when patching host vulnerabilities. Virtual Patching does not require installation on your servers.
Keep this module enabled. If disabled, virtual patches will not be updated automatically in real time.
Procedure
On the IPS Configuration page, go to the tab for the corresponding boundary firewall. Click Configure Defense Module, and find the Virtual Patching section to configure the settings.
Module switch: Use the switch to enable or disable this module.
Fine-tune rules: Click Rule Configuration. The following operations are supported.
Modify rule action: In the Current Action column for the target rule, adjust the rule action. The modified rule is marked as a Custom rule.
Enable or disable a rule: In the Status column for the target rule, adjust the rule status.
Restore default rule actions: Click Restore to Default IPS Rules/Restore All IPS Rules of VPC Firewall to reset the rule configurations to their default state.
NoteFor VPC boundary firewalls, if you modify the action or enabled status of any rule, the custom rule applies to all VPC boundary firewall instances.
Threat Intelligence
The Threat Intelligence module detects malicious traffic by matching IP addresses, domain names, and URLs. It covers more than 20 types of intelligence, such as Tor nodes, crypto mining, C&C, advanced persistent threat (APT), scanning, brute-force attacks, and phishing. This module lets you configure detection actions for each intelligence type to help you proactively identify network threats. Enable this module.
Threat Intelligence uses the IPS engine to independently detect and block malicious IP addresses. These IP addresses are not automatically synchronized to the IP address book in Access Control policies. The two are separate mechanisms.
Enabling this module for a pay-as-you-go Cloud Firewall instance incurs additional fees. For more information, see Pay-as-you-go 2.0.
Procedure
On the IPS Configuration page, go to the tab for the corresponding boundary firewall. Click Configure Defense Module, and find the Threat Intelligence section to configure the settings.
Module switch: Use the switch to enable or disable this module.
Fine-tune rules: Click Rule Configuration. The following operations are supported.
Modify rule action: In the Current Action column for the target rule, adjust the rule action.
Enable or disable a rule: In the Status column for the target rule, adjust the rule status.
Intelligent Defense
The Intelligent Defense module uses artificial intelligence technology, combined with massive amounts of attack data and features, to intelligently identify unknown attack behaviors and improve the detection of advanced attacks. This module currently supports only monitor mode and does not allow custom configurations.
Procedure
On the IPS Configuration page, go to the Internet Border tab. Click Configure Defense Module, and find the Intelligent Defense section to configure the settings. Currently, you can only use the switch to enable or disable this module.
Data Leakage
Cloud Firewall inspects outbound traffic from the cloud (traffic from your business assets to the internet) for sensitive data to help you identify data loss risks.
Procedure
On the IPS Configuration page, go to the Internet Border tab. Click Configure Defense Module, and find the Data Leakage section to configure the settings.
Prerequisites: Before configuring this module, enable sensitive data leak detection and connect your assets to it. For detailed steps, see Data Loss Prevention.
Module switch: Use the switch to enable or disable this module. If disabled, the sensitive data leak detection module is stopped. To use it again, you must re-enable it.
Enable or disable a specific rule: Click Rule Configuration, and then adjust the rule status in the Status column for the target rule.
Traffic Traceability
In scenarios where the real service IP address is not exposed, such as with a NAT Gateway, it is difficult to locate the specific attacked service instance, such as an ECS instance. The Private IP Traceback feature automatically correlates NAT Gateway session logs and displays the private IP address directly. This helps trace attacks and quickly locate at-risk assets.
Limits
Currently, only public assets of the NAT Gateway type are supported.
Prerequisites
Enable internet boundary firewall protection for the elastic IP address (EIP) of the NAT Gateway. For more information, see Enable protection for assets.
Enable session logs (not required if only DNAT is configured). For more information, see Session logs.
Procedure
On the IPS Configuration page, go to the Internet Border tab. Click Configure Defense Module, find the Traffic Traceability section, and then click Rule Configuration. After the prerequisites are met, you can use the switch in the Private Network Traceback column to enable this feature.
Enabling the Traffic Traceability feature does not incur additional charges from Cloud Firewall itself. However, the system creates indexes and runs queries on your NAT Gateway session logs, which incurs fees for Log Service (SLS). For more information about the billing, see SLS billing standards.
If Traffic Traceability is enabled and the system finds that indexing for NAT Gateway session logs is disabled, or that required fields for tracing are missing from the index, the system automatically recreates the index or adds the required fields.
Due to delays in NAT Gateway log capture and delivery, there is an expected delay of about 20 minutes when querying traffic trace results.
Allowlist
To allow traffic from trusted IP addresses to bypass the IPS engine, add them to the protection allowlist. The allowlist only applies to the Basic Protection, Intelligent Defense, and Virtual Patching modules.
Internet boundary firewall
On the IPS Configuration page, go to the Internet Border tab, and click Configure Whitelist. You can configure the following items:
IP address type: Supports IPv4 Address Allowlist and IPv6 Address Allowlist.
Outbound: Supports configuring Destination IP Address Whitelist and Source IP Address Whitelist.
Inbound: Supports configuring Destination IP Address Whitelist and Source IP Address Whitelist.
For each allowlist, you can manually enter IP addresses or reference an address book. If no configuration is needed, select Later.
VPC boundary firewall
On the IPS Configuration page, go to the VPC Border tab. Find the target VPC boundary firewall instance and click Configure IPS Whitelist.
Configuration: Supports configuring Destination IP Address Whitelist and Source IP Address Whitelist. For each allowlist, you can manually enter IP addresses or reference an address book. If no configuration is needed, select Later.
Scope: After you configure the allowlist for a VPC boundary firewall, the configuration applies to all VPCs under the current Cloud Enterprise Network (CEN) or all VPCs in a peering connection.
What to do next
After you configure the prevention policies, you can explore the following features:
Intrusion Prevention: View abnormal traffic blocked by Cloud Firewall.
Vulnerability Prevention: Use IPS capabilities to prevent vulnerabilities from being exploited and protect your assets from intrusions.
Breach Detection: Promptly discover and identify intrusion events.
FAQ
What is the matching order for Cloud Firewall rules?
In Cloud Firewall, network traffic is evaluated against rules in the following order:
Access control policy (ACL)
If you enable an access control policy, the system first matches traffic against the policy's rules:If traffic matches a rule with the Deny action, it is blocked immediately, and no further evaluation occurs.
If traffic matches a rule with the Allow or Monitor action, or if no ACL rules are matched, evaluation continues to the next stage.
Threat Intelligence (TI)
The system then matches traffic against the Threat Intelligence database:If traffic matches a threat and the action is Block, the evaluation stops.
Otherwise, evaluation continues to the next stage.
Intrusion Prevention System (IPS) module
The Intrusion Prevention System (IPS) module evaluates traffic against the Basic Protection, Intelligent Defense, and Virtual Patching rule sets. These three rule sets have no specific priority, and the system matches traffic against all of them. If any rule triggers a Block action, the traffic is dropped. Otherwise, the traffic is allowed after all checks are complete.
The ACL, TI, and IPS modules are independent and evaluated sequentially. The evaluation process stops only when a module blocks the traffic. Otherwise, evaluation continues through all subsequent modules.
I set the threat engine mode to a block mode. Why is attack traffic not being blocked?
This may be due to the following reasons:
Protection from the corresponding boundary firewall is not enabled for the relevant assets.
The switches for Basic Protection, Virtual Patching, or Threat Intelligence are turned off.
A protection allowlist is configured to allow the matching traffic.
Although the threat engine mode is set to a block mode, the engine mode supported by the rule corresponding to the attack traffic is monitor (that is, monitor is used for all block mode levels), or the custom action for the rule is set to monitor.