7. Response Service
The AWS app provides the AWS WAF response model. Adding or removing an IP in a Logpresso address group updates the AWS WAF IP set accordingly, so detection rules and playbooks can block addresses.
Skip this page if you do not use the response service.
1. Prepare the AWS WAF IP set
In IP sets of the AWS WAF console, create the IP set to use for blocking or pick an existing one. Copy its name and ID; both are entered in the response service settings.
IP sets are managed per region, and an IP set applied to CloudFront must be created with the global (CloudFront) scope. The scope of the IP set must match the AWS region value of the response service.
To actually block traffic, a web ACL rule must reference the IP set with the action set to Block. Logpresso synchronizes only the address list of the IP set and does not change web ACL rules.
2. Check the IAM permissions
The WAF permissions in 2. IAM Policy Configuration must be granted to the connection profile.
wafv2:GetIPSetwafv2:ListIPSetswafv2:UpdateIPSet
3. Add the response service
Go to Settings > Response Services, click Add, and fill in the fields.
| Group | Field | Value |
|---|---|---|
| Required | Name | Unique name to identify the response service |
| Required | Model | Select AWS WAF |
| Required | Connect profile | The AWS connection profile created in 5. Connection Profile |
| Required | AWS region | Region where the IP set was created. Select CloudFront for an IP set applied to CloudFront |
| Required | IP set ID | ID of the IP set copied in step 1 |
| Required | IP set name | Name of the IP set copied in step 1 |
The supported actions are block IP, block IP list, unblock IP, and unblock IP list.
4. Verify the setup
After saving the response service, add a test IP to the address group and check that the same address appears in the IP set in the AWS WAF console. Then remove the test IP and check that it disappears from the IP set as well.