I have an apache2.4 webserver, and I am trying to block a malicious subnet using ufw. Here is the UFW setup:
$ sudo ufw status verbose Status: active Logging: on (low) Default: deny (incoming), allow (outgoing) New profiles: skip To Action From -- ------ ---- 80 ALLOW IN Anywhere Anywhere DENY IN X.X.X.0/24
I to test, I added a rule to block my own IP but I can still view the pages, and site, so evidently, UFW is not blocking traffic from my IP. I can only assume the case is the same for the blocked subnet.
Please, how can I block subnets from accessing my webpages?