Configuring a Network ACL
Scenarios
You can add inbound and outbound rules to the network ACLs you create. A rule applies either to inbound traffic or outbound traffic. The subnet associated with a network ACL is protected by the network ACL rules.
- Inbound: allows traffic from the Internet to the subnets associated with the network ACL
- Outbound rule: allows subnets associated with the network ACL rule to access subnets not associated with the network ACL.
For details about the configuration examples of the network ACL rule, see Network ACL Configuration Examples.
Constraints and Limitations
- By default, each network ACL has preset rules that allow the following packets:
- Packets whose source and destination are in the same subnet and at the same site
- Broadcast packets with the destination 255.255.255.255/32 that is used for configuring host startup information
- Multicast packets with the destination 224.0.0.0/24 that is used by routing protocols
- Metadata packets with the destination 169.254.169.254/32 and TCP port 80 that are used for obtaining metadata
- Packets from CIDR blocks that are reserved for public services, for example, packets with the destination 100.125.0.0/16
- A network ACL denies all traffic in and out of a subnet excepting the preceding ones. Table 1 shows the default network ACL rules. The default rules cannot be modified or deleted.
- Network connectivity
- Edge instances on subnets of different VPCs cannot communicate with each other even if the subnets have the same network ACL and inbound and outbound rules have been configured for the subnets.
- Edge instances on the subnets of different edge sites cannot communicate with each other even if inbound and outbound network ACL rules have been configured for the edge instances.
- Rule Priorities
- Network ACL rules have priorities. A smaller priority value indicates a higher priority and the network ACL rule is applied first. The rule whose priority value is an asterisk (*) has the lowest priority.
- If network ACL rules conflict, the rules with higher priorities take precedence. If you need a rule to take effect before or after a specific rule, you can insert that rule before or after the specific rule.
Procedure
- Log in to the management console.
- Hover on the left menu to display Service List. Under Content Delivery & Edge Computing, select Intelligent EdgeCloud.
The IEC Overview page is displayed.
- In the navigation pane on the left, choose Edge Networks > Network ACLs.
- On the Edge Network ACLs page, locate the network ACL, click Configure Rule in the Operation column or click the network ACL name in the Name column to go to the network ACL details page.
- Under Inbound Rules or Outbound Rules, click Add Rule to add an inbound or outbound rule. You can click + to add more rules.
Table 2 Description Parameter
Description
Example Value
Action
(Mandatory) Network ACL policy. Currently, the value can be Allow or Deny.
Allow
Protocol
Protocol supported by the network ACL. This parameter is mandatory. Currently, only TCP, UDP, ICMP, and All protocols are available.
If you select All protocols or ICMP, you cannot specify the ports.
TCP
Source
Source IP address that the traffic is allowed from.
The default value is 0.0.0.0/0, which indicates that traffic to all IP addresses is allowed.
Example:
xxx.xxx.xxx.xxx/32 (IPv4 address)
xxx.xxx.xxx.0/24 (subnet)
0.0.0.0/0 (any IP address)
0.0.0.0/0
Source Port Range
Source port or port range. The port ranges from 1 to 65535. For a port range, enter two port numbers connected by a hyphen (-), for example, 1-100.
You must specify this parameter if TCP or UDP is selected for Protocol.
22 or 22-30
Destination
Destination IP address that the traffic is allowed to.
The default value is 0.0.0.0/0, which indicates that traffic to all IP addresses is allowed.
Example:
xxx.xxx.xxx.xxx/32 (IPv4 address)
xxx.xxx.xxx.0/24 (subnet)
0.0.0.0/0 (any IP address)
0.0.0.0/0
Destination Port Range
Destination port or port range. The port ranges from 1 to 65535. For a port range, enter two port numbers connected by a hyphen (-), for example, 1-100.
You must specify this parameter if TCP or UDP is selected for Protocol.
22 or 22-30
Description
(Optional) Supplementary information about the network ACL rule.
The description can contain a maximum of 64 characters and cannot contain angle brackets (< or >).
N/A
- Click OK.
Last Article: Managing Network ACLs
Next Article: Managing Network ACL Rules
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.