Help Center/ Cloud Firewall/ User Guide/ Access Control/ Managing ACL Policies/ Adjusting the Priority of a Protection Rule
Updated on 2026-02-02 GMT+08:00

Adjusting the Priority of a Protection Rule

Rules are evaluated in descending order of priority. The rule will stop being evaluated once a rule applies. To avoid false blocking and improve matching accuracy, place allowing rules before blocking rules and specific rules before general ones. This ensures that normal traffic is allowed first and precise rules are applied.

This section describes how to adjust the priorities of protection rules.

Priority Description

You can check the priorities of protection rules in the rule list. A larger value indicates a lower priority. The value 1 indicates the highest priority.

Adjusting the Priority of a Protection Rule

  1. Log in to the CFW console.
  2. Click in the upper left corner of the management console and select a region or project.
  3. (Optional) Switch to another firewall instance. Select a firewall from the drop-down list in the upper left corner of the page.
  4. In the navigation pane, choose Access Control, and choose Internet Border Protection Rules or VPC Border Protection Rules.
  5. In the Operation column of a rule, click Configure Priority.
  6. In the displayed dialog box, select Pin on top or Lower than the selected rule, and click OK.

    • If you select Pin on top, the policy is set to the highest priority.
    • If you select Lower than the selected rule, you need to select a group or rule. The policy priority will be lower than the selected rule.

    When the priority of a rule is changed, the priority numbers of the rules that followed it in the original order are each decremented by 1.

Related Operations/Documents