How I Did AWS WAF on Lightsail instance

Things to keep in mind while creating loadbalancer is

The Loadbalancer scheme should be internetfacing as this is a website

For Https listener you’ll need a SSL Certificate issued in AWS Certificate manager

You’ll need http and https ports open in Security group

curl http://169.254.169.254/latest/meta-data/local-ipv4

common-web is the alb I created
here I am adding just one rule

nmap -p80 — script http-waf-detect <host>

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store