How to use Network ACLs
A Network Access Control List (ACL) is a list of stateless rules that allow you to control traffic between the different Private Networks of a VPC. By default, the list is empty, and traffic is therefore unrestricted.
Read more about the features and behavior of Network ACLs in our dedicated reference content.
Before you start
To complete the actions presented below, you must have:
- A Scaleway account logged into the console
- Owner status or IAM permissions allowing you to perform actions in the intended Organization
How to create a rule
-
Click VPC in the Network section of the Scaleway console side menu. A listing of your VPCs displays.
-
Use the region selector at the top of the page to filter for the region of the VPC you want to configure, then click its name in the listing.
-
Click the Network ACL tab. A listing of the current rules displays.
-
Click Edit rules to enter edit mode.
-
Click + Add IPv4 rule or + Add IPv6 rule depending on the type of traffic you want to filter. A creation wizard displays.
-
Fill in the following fields to define your rule:
- Protocol: Select the protocol the rule applies to (
All,TCP,UDP, orICMP). - Source: Enter the IP address or range (in CIDR notation) and the Port or range of the traffic source. Tick All IPs and/or All ports to match any value.
- Destination: Enter the IP address or range (in CIDR notation) and the Port or range of the traffic destination. Tick All IPs and/or All ports to match any value.
- Action: Select Allow to permit matching traffic, or Deny to block it.
- Description (optional): Enter a short description to help identify the rule.
- Position in list: Select Add to top or Add to bottom to set the rule's priority. Rules are evaluated from top to bottom, and the first matching rule applies.
- Create inverse rule (optional): Tick this box to automatically create a second rule with the source and destination swapped, to cover return traffic.
- Protocol: Select the protocol the rule applies to (
-
Click Add to create the rule. The new rule displays in the listing.
-
Click Save changes to apply your modifications.
How to manage rules
-
Click VPC in the Network section of the Scaleway console side menu. A listing of your VPCs displays.
-
Use the region selector at the top of the page to filter for the region of the VPC you want to configure, then click its name in the listing.
-
Click the Network ACL tab. A listing of the current rules displays.
-
Click Edit rules to enter edit mode.
-
Use the up and down arrows to arrange the rules as necessary. Rules are evaluated from top to bottom, and the first matching rule applies.
-
Click Save changes once finished.
Modifications to rules and rule ordering take effect immediately.
How to delete a rule
-
Click VPC in the Network section of the Scaleway console side menu. A listing of your VPCs displays.
-
Use the region selector at the top of the page to filter for the region of the VPC you want to configure, then click its name in the listing.
-
Click the Network ACL tab. A listing of the current rules displays.
-
Click Edit rules to enter edit mode.
-
Click the
icon next to the rule you want to delete. -
Click Save changes to confirm.