Network ACL#

General information#

Network access control lists (Network ACL, NACL) act as firewalls at the subnet level. When a VPC is created, a default network access control list is created. It is assigned to each subnet being created and allows all inbound and outbound traffic. The corresponding rules are shown in the tables below.

After a subnet is created, you can assign your own network access control list to it. The figure shows the possible ways to assign NACLs to subnets and security groups to network interfaces. For example, you can associate a network access control list with several subnets.

../../_images/version_acl_sg.png
Inbound rules for the default network access control list#

Rule number

Protocol

CIDR

Ports

Action

100

all(-1)

0.0.0.0/0

Allow

32767

all(-1)

0.0.0.0/0

Deny

Outbound rules for the default network access control list#

Rule number

Protocol

CIDR

Ports

Action

100

all(-1)

0.0.0.0/0

Allow

32767

all(-1)

0.0.0.0/0

Deny

Attention

If a network access control list is assigned to a subnet that is attached to a transit gateway, inbound NACL rules will not be applied to traffic coming from the transit gateway.

Billing#

Network access control lists are not charged.

Available quotas#

The following default quotas are allocated to network access control lists:

  • 200 NACLs in one VPC;

  • 20 rules in one NACL in each direction.

If necessary, you can increase quotas. To do this, contact the support service via the support portal or by email support@k2.cloud.

Operations with network access control lists#

Create an NACL#

  1. In the top menu of the web interface, select the project and region where you need to create a network access control list.

  2. Expand the side menu by clicking .

  3. Go to Networking Network ACL. To find the section quickly, you can use the menu search.

  4. Click Create.

  5. In the NACL creation dialog, specify the VPC in which you need to create the network access control list.

  6. If you need to set a tag, click Add tag and specify the tag key and value. To assign more tags, click Add tag again.

  7. To finish creating the NACL, click Create.

The created list will contain two rules that deny all inbound and outbound traffic, but they will have the lowest priority. Follow the link with the network access control list ID to set your own rules, assign the NACL to subnets, view the list of associated subnets, and see general information about this NACL.

Assign an NACL to a subnet#

  1. In the top menu of the web interface, select the project and region where you need to assign an NACL to a subnet.

  2. Expand the side menu by clicking .

  3. Go to Networking Network ACL. To find the section quickly, you can use the menu search.

  4. Select the NACL in the resource table.

  5. In the pop-up action bar, click Associate with subnets.

  6. In the window that appears, select the subnet to which the network access control list should be assigned from the drop-down list. You can select several subnets at once by selecting next to the required subnet. To cancel the selection, clear the checkbox.

    Note

    Only one NACL can be assigned to a subnet; you can always associate another NACL with the subnet later. To associate another NACL with a subnet, it is enough to assign it to the subnet.

  7. To complete the action, click Associate.

You can also perform this operation on the NACL page. To do this, go to its page and click Assign to subnets.

If you want to know which subnets a specific network access control list is assigned to, open the Subnets tab on its page.

Set tags for an NACL#

  1. In the top menu of the web interface, select the project and region where you need to assign tags to a network access control list.

  2. Expand the side menu by clicking .

  3. Go to Networking Network ACL. To find the section quickly, you can use the menu search.

  4. Find the NACL in the resource table and click its ID to go to the NACL page.

  5. Open the Tags tab and click Edit to set tags.

  6. If no tags have been set before, you can set them by filling in the Key and Value fields. To assign the next tag, click Add tag.

    To modify a tag, edit the required fields (Value and/or Key) of the respective tag.

    To delete a tag, click the icon next to the tag you no longer need.

  7. To complete editing, click Save changes.

Delete an NACL#

Important

Before deleting a network access control list, make sure that it is not assigned to any subnet. If the network access control list being deleted is associated with a subnet, first assign another NACL to it.

  1. In the top menu of the web interface, select the project and region where you need to delete a network access control list.

  2. Expand the side menu by clicking .

  3. Go to Networking Network ACL. To find the section quickly, you can use the menu search.

  4. Select the NACL in the resource table.

  5. In the pop-up action bar, click Delete.

  6. In the dialog window, confirm the action.

You can also perform this operation on the NACL page. To do this, go to its page and click Delete.

Attention

The default network access control list cannot be deleted.

Working with rules#

Each network access control list contains numbered inbound and outbound rules that allow or deny traffic at the subnet level. The rules are applied in order of priority, which in turn depends on the number: the lower the number, the higher the priority of the rule. We recommend that you first create rules with numbers that are multiples of 100. This will help you avoid difficulties later when adding rules with an intermediate priority between two existing rules. The highest number a rule can have is 32766.

Attention

One network access control list cannot contain two rules of the same direction with the same number.

Create a rule#

  1. In the top menu of the web interface, select the project and region where you need to create an inbound or outbound rule for a network access control list.

  2. Expand the side menu by clicking .

  3. Go to Networking Network ACL. To find the section quickly, you can use the menu search.

  4. Find the NACL in the resource table and click its ID to go to the NACL page.

  5. Open the required Inbound rules or Outbound rules tab and click Add.

  6. In the window that opens, set the required parameters:

    • Rule number.

    • Rule type.

    • Protocol — You can set the rule for all protocols or select a specific protocol from the list. If there is no required protocol on the list, select Other.

      • Protocol number — If the protocol is not on the list, set its number according to IANA.

      • Port access — For TCP and UDP, specify whether access is granted to/from all ports or ports from a specific range.

        • Ports — If you select access for some ports only, specify a comma-separated list of ports and/or port ranges.

          Note

          A separate rule will be created for each port or port range in the list.

    • Grant access — You can grant access for all IP addresses or a specified network.

      • Network — If you select From network or To network (in inbound or outbound rules, respectively), specify the network in CIDR notation.

  7. To complete the rule creation, click Create.

Once the addition is confirmed, the subnets, which this ACL is associated with, will filter traffic according to the new security rules.

Modify a rule#

  1. In the top menu of the web interface, select the project and region where you need to change an inbound or outbound rule for a network access control list.

  2. Expand the side menu by clicking .

  3. Go to Networking Network ACL. To find the section quickly, you can use the menu search.

  4. Find the NACL in the resource table and click its ID to go to the NACL page.

  5. Open the required Inbound rules or Outbound rules tab.

  6. In the rule table, select the rule and, in the pop-up action bar, click Modify.

  7. In the window that opens, you can edit the following parameters:

    • Rule type.

    • Protocol — You can set the rule for all protocols or select a specific protocol from the list. If there is no required protocol on the list, select Other.

      • Protocol number — If the protocol is not on the list, set its number according to IANA.

      • Port access — For TCP and UDP, specify whether access is granted to/from all ports or ports from a specific range.

        • Ports — If you select access for some ports only, specify a comma-separated list of ports and/or port ranges.

          Note

          A separate rule will be created for each port or port range in the list.

    • Grant access — You can grant access for all IP addresses or a specified network.

      • Network — If you select From network or To network (in inbound or outbound rules, respectively), specify the network in CIDR notation.

  8. To complete the editing, click Modify.

Once the changes are confirmed, subnets, which this ACL is associated with, will filter traffic according to the new security rules.

Delete a rule#

  1. In the top menu of the web interface, select the project and region where you need to delete an inbound or outbound rule for a network access control list.

  2. Expand the side menu by clicking .

  3. Go to Networking Network ACL. To find the section quickly, you can use the menu search.

  4. Find the NACL in the resource table and click its ID to go to the NACL page.

  5. Open the required Inbound rules or Outbound rules tab.

  6. Select the desired rule and click Delete in the pop-up action bar. You can select multiple rules at once by ticking next to the desired rules. To deselect, clear the checkbox.

  7. In the window that opens, confirm the deletion.

Information about an NACL#

General information about the existing network access control lists can be viewed in the Network ACL subsection. To view all NACLs in the project, select All VPCs in the VPC filter. To display NACLs from a specific VPC, select the required VPC in the filter.

To view detailed information about a specific network access control list, go to Networking Network ACL and select the required list.

To make it easier to find an NACL in the table, you can select the VPC in which the NACL was created in the VPC filter, or use the table search.

After you select the required network access control list, click its ID. The NACL page will open.

The Information tab displays the main NACL characteristics:

  • NACL status as the default network access control list (Yes/No);

  • VPC where the ACL was created;

  • number of subnets with which the ACL is associated.

Here you can:

The Inbound rules tab displays a table with details of inbound rules:

  • rule number;

  • protocol;

  • CIDR block of IP addresses from which access is allowed;

  • ports;

  • rule-triggered action.

Here you can add, modify, or delete an inbound rule.

The Outbound rules tab displays a table with details of outbound rules:

  • rule number;

  • protocol;

  • CIDR block of IP addresses to which access is allowed;

  • ports;

  • rule-triggered action.

Here you can add, modify, or delete an outbound rule.

If the NACL is assigned to at least one subnet, the Subnets tab becomes active. This tab displays a table with details of the subnets to which this NACL is assigned:

  • subnet ID;

  • CIDR block of IP addresses;

  • whether it is a default subnet (Yes/No).

Here you can also assign the NACL to subnets.

On the Tags tab, you can view the tags assigned to the NACL. Here you can also add, modify, and delete tags.