Yeah, I hate saying it is not possible. Maybe there is something in aws to do it...
randomwizard @randomwizard@vivaldi.net
Yeah, I hate saying it is not possible. Maybe there is something in aws to do it on just an EC2 instance but from what I have done in aws, you have to put your EC2 instance behind a load balancer and then build up your WAF and apply it to the load balancer.
I find it annoying too and just like to fall back to unix/linux ways.
At the risk of causing even more anger at answering questions that were not asked.
Perhaps instead of using iptables (which can be weird to get use to).
If jwz is using apache, he could go get the geoip database. Find the Hong Kong ips. Then just put them into the apache config. Or format it for whatever web server he is using. Something like this
<RequireAll>
Require all granted
# Block a CIDR range
Require not ip 203.0.113.0/24
Require not ip 198.51.100.0/24
Require not ip 203.0.113.0/24
</RequireAll>