Updated on 2024-06-13 GMT+08:00

Enabling or Disabling a Network ACL Rule

Scenarios

After a rule is added, it is in Enabled status. You can disable it if you need.
  • If custom rules are disabled, they will become invalid but default rules are still applied. As a result, all traffic to and from the associated subnets are denied. Disabling all custom rules may interrupt network traffic. Be careful with this operation as it may interrupt services.
  • If a custom rule is enabled, it is applied. Enabling custom rules may affect how and where traffic is directed. Be careful with this operation as it may interrupt services.

Notes and Constraints

Default network ACL rules cannot be modified or deleted.

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 as required.

    The network ACL rule list is displayed.

  6. In the rule list, perform the following operations to enable or disable a rule:
    • Enabling a network ACL rule
      1. Locate the target network ACL rule and choose More > Enable in the Operation column.

        A confirmation dialog box is displayed.

      2. Confirm the information and click Yes.
    • Disabling a network ACL rule
      1. Locate the target network ACL rule and choose More > Disable in the Operation column.

        A confirmation dialog box is displayed.

      2. Confirm the information and click Yes.