Menu

1 / 2

How I Blocked 50 DDoS Attempts With AWS WAF: CloudFront, S3, Load Balancers and Splunk in Practice

DEV Community: devsecops·Kenneth Chinedu·1 day ago
#E4fGRsWO
#devtodevsecops#devto#dev#rule#rules
Long article (2194 words) — no AI summary yet.
Reading 0:00
15s threshold

AWS WAF in front of a CloudFront download service and an ALB-fronted Kubernetes app: managed rules, geo-blocking, rate limits, custom rules, a migration off WAF Classic, and what the Splunk dashboards actually showed.

A web application firewall is a bouncer. It stands at the door, looks at every request, and decides who gets in. The trouble with bouncers is that a bad one either lets everyone through or throws out your best customers, and you only find out which when someone complains.

I've set up AWS WAF in front of two quite different things, moved an old WAF Classic setup over to WAFv2, and wired the logs into Splunk so we could see what the bouncer was actually doing. Over that time it blocked more than 1,000 requests from regions we didn't serve and caught around 50 DDoS attempts before they reached the app. This post is how that was put together, what AWS gives you out of the box, and where we had to write our own rules.

No employer names, account IDs or hostnames here.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.