Updated on 2024-07-12 GMT+08:00

Adding a Network ACL Rule (Custom Priorities)

Scenarios

If you want a new rule to have a higher or lower priority than a specific rule, you can insert the new rule above or below the specific rule.

As shown in Table 1, there are two custom inbound rules (rule A and rule B) and one default rule. The priority of rule A is 1 and that of rule B is 2. The default rule has the lowest priority. If you want rule C to be applied earlier than rule B, you can insert rule C above rule B. After rule C is added, the priority of rule C is 2, and that of rule B is 3.

Table 1 Custom priorities

Priorities (Rules A and B)

Priorities (Rules A, B, and C)

Custom rule A

1

Custom rule A

1

--

--

Custom rule C

2

Custom rule B

2

Custom rule B

3

Default rule

*

Default rule

*

Procedure

  1. Log in to the management console.
  1. Click in the upper left corner and select the desired region and project.
  2. Click in the upper left corner and choose Networking > Virtual Private Cloud.

    The Virtual Private Cloud page is displayed.

  3. In the navigation pane on the left, choose Access Control > Network ACLs.

    The network ACL list is displayed.

  4. In the network ACL list, locate the target network ACL and click its name.

    The network ACL summary page is displayed.

  5. Click the Inbound Rules or Outbound Rules tab and insert a rule.
    • Locate the target rule and choose More > Insert Rule Above in the Operation column. The new rule has higher priority than the current rule.
    • Locate the target rule and choose More > Insert Rule Below in the Operation column. The new rule has lower priority than the current rule.