Standard stateful rule groups in Amazon Network Firewall - 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).

Standard stateful rule groups in Amazon Network Firewall

Amazon Network Firewall supports easy entry for standard stateful rules for network traffic inspection. The match criteria for this stateful rule type is similar to the Network Firewall stateless rule.

All rule groups have the common settings that are defined at Common rule group settings in Amazon Network Firewall.

General settings

A stateful basic rule has the following general settings.

Match settings

A basic stateful rule has the following match settings. These specify what the Network Firewall stateful rules engine looks for in a packet. To be a match, a packet must satisfy all of the match settings in the rule.

  • Protocol – Transport protocol. Choose the protocol that you want to inspect. For all protocols, you can use IP, because all traffic on Amazon and on the internet is IP.

  • Source IP – Source IP addresses and ranges. If specified, a packet must come from a source address that's included in this list in order to match.

  • Source port – Source ports and port ranges. If specified, a packet must have a source port that's included in this list in order to match.

  • Destination IP – Destination IP addresses and ranges. If specified, a packet must have a destination address that's included in this list in order to match.

  • Destination port – Destination ports and port ranges. If specified, a packet must have a destination port that's included in this list in order to match.

  • Traffic direction – Direction of traffic flow. Valid settings are Any and Forward. Forward matches packets whose origination matches the rule's source settings and whose destination matches the rule's destination settings. Any matches the forward match, and also matches packets whose origination matches the rule's destination settings, and whose destination matches the rule's source settings.

  • Rule options – Define the specifics of the rule, in keyword, settings pairs.

    Note

    The console doesn't currently allow entry of rule options. Rule options are usually required for complete specification of this rule type. If you need to specify rule options, use one of the APIs or Amazon CloudFormation. For information, see StatefulRule in the Amazon Network Firewall API Reference and AWS::NetworkFirewall::RuleGroup StatefulRule in the Amazon CloudFormation User Guide.

For an example rule specification and the Suricata compatible rule that Network Firewall generates from it, see Standard stateful rule groups.