Configure Ruleset
Equipping the Firewall with “Weapons”
A firewall is useless without rules. In this section, we will add rule sets (Rules) to instruct WAF on how to identify and block malicious traffic targeting your Application Load Balancer.
Step 1: Add AWS Managed Rule Groups
Instead of researching the latest security vulnerabilities yourself, we will “borrow” the defense lists continuously updated by AWS security experts.
- On the Add rules and rule groups screen, click the Add rules button and select Add managed rule groups.
- Expand the AWS managed rule groups section.
- Scroll down and toggle the switch (Add to web ACL) for the following two rule sets:
- Amazon IP reputation list: Blocks IP addresses historically associated with botnets, spam, or malware.
- Core rule set: Protects against the most common web vulnerabilities (OWASP Top 10) such as SQL Injection and Cross-Site Scripting.
- Scroll to the bottom of the page and click Add rules to return to the main screen.
- On the Review screen, double-check all information and click Create web ACL.
