Creating a stateless rule group
Follow the guidance in this section to create a stateless rule group through the Network Firewall console.
To create a stateless rule group
Sign in to the Amazon Web Services Management Console and open the Amazon VPC console at https://console.amazonaws.cn/vpc/
. -
In the navigation pane, under Network Firewall, choose Network Firewall rule groups.
-
Choose Create Network Firewall rule group.
-
On the Describe rule group page, provide the following information:
-
Enter a name and description for the rule group. You'll use these to identify the rule group when you manage it and use it.
Note
You can't change the name after you create the rule group.
-
For Capacity, set the maximum capacity you want to allow for the stateless rule group, up to the maximum of 30,000. You can't change this setting after you create the rule group. For information about how to calculate this, see Setting rule group capacity in Amazon Network Firewall. For information about the maximum setting, see Amazon Network Firewall quotas.
-
(Optional) Under Customer managed key, toggle the Customize encryption settings option to configure your customer managed key. For more information about this option, see Encryption at rest with Amazon Key Management Service.
-
(Optional) Under Tags, enter a key and optional value for any tag that you want added to this rule group. Tags help you organize and manage your Amazon resources. For more information about tagging your resources, see Tagging Amazon Network Firewall resources.
-
-
Choose Next.
-
On the Choose rule group type page, for the Rule group format, choose Stateless rule group.
-
Choose Next.
-
On the Configure rules page, review the rules that you want to add to the stateless rule group. Determine roughly what order you want Network Firewall to process them within the rule group. You need to provide unique, positive integer priority settings for your rules to indicate the processing order. Network Firewall processes from the lowest number up. We recommend using numbers with room in between, to allow for future insertions within the list of rules. For example, you might start with rule priorities numbered 100, 200, and so on.
Add each rule to the rule group as follows:
-
For Priority, provide the priority to set the processing order of your rule.
-
Choose the protocol and the source and destination settings for your rule.
-
(Optional) For TCP flags provide the masks and flags that you want to inspect for. In Masks, indicate the flags that you want to inspect. In Flags, indicate which of the flags that you selected in Masks must be set. The other flags that you selected in Masks must be unset.
-
For Actions, do the following:
-
For Action, select the standard action that you want Network Firewall to take when a packet matches the rule settings.
-
(Optional) For Publish metrics, add a new named custom action or select one that you've already created in the rule group. This option sends an Amazon CloudWatch metric dimension named
CustomActionwith a value that you specify.
For additional information on these options, see Actions for stateless rules.
-
-
Choose Add rule. Your rule is added to the Rules list for the rule group, ordered by priority.
-
-
Choose Next.
-
Review the settings for the rule group, then choose Create stateless rule group.
Your new rule group is added to the list in the Network Firewall rule groups page.
To use your rule group in a firewall policy, follow the procedures at Managing your firewall policy.