- Newest
- Most votes
- Most comments
Unfortunately, we do support managed rule with LZA now.There is feature request existing for this. Thank you!
The managed rule groups I mentioned in step three are for AWS WAF you are correct.
The rest is applicable to the AWS Network Firewall.
Here is the link to the documentation for the cloudformation for a stateful rule
Here is the same section in the API documentation
https://docs.aws.amazon.com/network-firewall/latest/APIReference/API_StatefulRule.html
If none of the above steps resolve the issue, it may be necessary to contact AWS Support for further assistance. They can provide specific guidance based on your account and configuration.
answered 2 years ago
The Landing Zone Accelerator (LZA) sample configurations don't explicitly show how to enable managed rule groups for AWS Network Firewall. This link shows how to update the network-config.yaml to add a transit gateway. It is a similar process to add managed rule groups.
-
First, ensure you have the Network Firewall configuration in your
network-config.yamlfile. -
To add managed rule groups, you need to modify the
statefulRuleGroupssection. -
You can add managed rule groups as needed. AWS provides several managed rule groups, including:
- AWSManagedRulesATPRuleSet
- AWSManagedRulesKnownBadInputsRuleSet
- AWSManagedRulesSQLiRuleSet
- AWSManagedRulesLinuxRuleSet
- AWSManagedRulesWindowsRuleSet
-
For each rule group, you can specify:
name: The name of the managed rule grouppriority: The priority of the rule group (lower numbers are evaluated first)overrideAction: What action to take (ALERT or DROP)
-
After making these changes, commit and push your updated configuration files to your LZA configuration repository.
-
The LZA pipeline will detect the changes and update your Network Firewall policy to include these managed rule groups.
Remember, using managed rule groups may incur additional costs, so be sure to review the AWS pricing for Network Firewall and managed rule groups.
Also, it's a good practice to test these configurations in a non-production environment first to ensure they don't interfere with your legitimate traffic.
If you need to customize the behaviour of these managed rules or create your own stateful rules, you can do so by adding custom rule groups in addition to or instead of the managed ones.
If none of the above steps resolve the issue, it may be necessary to contact AWS Support for further assistance. They can provide specific guidance based on your account and configuration.
answered 2 years ago
Hi @brisjam-2842907, seems like you're confused with WAF. What I'm asking is Network Firewall. Any way I added the following in the network-config.yaml as follows:
policies: - name: nfw-policy regions: - *HOME_REGION firewallPolicy: statelessDefaultActions: ["aws:forward_to_sfe"] statelessFragmentDefaultActions: ["aws:forward_to_sfe"] statefulRuleGroups: - name: MalwareDomainsActionOrder shareTargets: organizationalUnits: - Infrastructure rules: - name: MalwareDomainsActionOrder regions: - *HOME_REGION capacity: 100 type: STATEFULbut encountered the following error:
Resource handler returned message: "Exactly one of Rules or RuleGroup must be set (Service: NetworkFirewall, Status Code: 400,
Relevant content
asked a year ago
asked a year ago
asked a year ago
asked 3 years ago

Thank you so much, @Lijan Kuniyil !!!