Adding a Network ACL Rule
Scenarios
You can add inbound and outbound rules to a network ACL to control the traffic in and out of a subnet. Network ACL rules are matched in ascending order, either by the system-generated rule numbers or those you define.
- Adding a Network ACL Rule (Default Rule Numbers): Rules are matched in order of their number, starting with the lowest. The rule number is automatically assigned based on the time when the rule is added.
In Table 1, there are two custom inbound rules (rule A and rule B) and one default rule. The rule A number is 1 and rule B number is 2. The default rule is the last rule that is used for matching traffic. When you add rule C, the rule number will be 3, which will be matched later than rules A and B but earlier than the default rule.
- Adding a Network ACL Rule (Custom Rule Numbers): If you want a rule to be matched earlier or later than a specific rule, you can insert the rule above or below the specific rule.
In Table 2, there are two custom inbound rules (rule A and rule B) and one default rule. The rule A number is 1 and rule B number is 2. The default rule is the last rule that is used for matching traffic. If you want rule C to be matched earlier than rule B, you can insert rule C above rule B. After rule C is added, the rule C number is 2, and rule B number is 3.
Constraints
A network ACL can contain up to 100 rules in one direction, or performance will deteriorate.
- Go to the network ACL list page.
- In the network ACL list, locate the target network ACL and click its name.
The network ACL summary page is displayed.
- On the Inbound Rules or Outbound Rules tab, click Add Rule.
The Add Inbound Rule or Add Outbound Rule dialog box is displayed.
- Configure required parameters.
- Click
to add more rules.
- Locate the row that contains the network ACL rule and click Replicate in the Operation column to replicate an existing rule.
- Click
- Click OK.
Return to the rule list to check the new rule.
- Rules are assigned a number based on the order they are added, with lower-numbered rule matched earlier.
- If the status of the new rule is Enabled, the rule is applied.
- Go to the network ACL list page.
- In the network ACL list, locate the target network ACL and click its name.
The network ACL summary page is displayed.
- 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 will be matched earlier than the current rule.
- Locate the target rule and choose More > Insert Rule Below in the Operation column. The new rule will be matched later than the current rule.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.