View a markdown version of this page

Creating a stateless rule group - Amazon Network Firewall
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

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
  1. Sign in to the Amazon Web Services Management Console and open the Amazon VPC console at https://console.amazonaws.cn/vpc/.

  2. In the navigation pane, under Network Firewall, choose Network Firewall rule groups.

  3. Choose Create Network Firewall rule group.

  4. On the Describe rule group page, provide the following information:

    1. Enter a Name to identify this rule group.

      Note

      You can't change the name after you create the rule group.

    2. (Optional) Enter a Description for the rule group to help you identify it among your other resources.

    3. (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.

    4. (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.

  5. Choose Next.

  6. On the Choose rule group type page, for Rule group version, choose Classic. Then, for Rule group type, choose Stateless rule group.

  7. Choose Next.

  8. 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. Use 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:

    1. For Priority, provide the priority to set the processing order of your rule.

    2. Choose the protocol and the source and destination settings for your rule.

    3. (Optional) If you chose All or TCP for the protocol, 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.

    4. For Rule action, choose the action that you want Network Firewall to take when a packet matches the rule: Pass, Drop, or Forward to stateful rule groups. For additional information on these options, see Actions for stateless rules.

    5. (Optional) For Publish metrics, choose New custom action and enter an action name and dimension value, or choose a custom action that you already created in this rule group. This option sends an Amazon CloudWatch metric dimension named CustomAction with the value that you specify.

    6. Choose Add rule. Your rule is added to the Rules list for the rule group, ordered by priority.

    Under Capacity, for Capacity sizing, choose Allow room to grow (recommended), Match current rules, or Custom capacity, up to the maximum of 30,000. You can't change the capacity 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.

  9. Choose Next.

  10. Review the settings for the rule group, then choose Create.

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.