UFW in ubuntu not blocking IP range
by Dooku from LinuxQuestions.org on (#5AGQY)
I have added the following rule to UFW on an Ubuntu server with Nginx:
sudo ufw deny from xxx.xxx.xxx.0/24 to any
The rule has been added at the beginning and is now rule #1 in UFW.
So there is nothing wrong in regards to the order of it being processed.
I have for good measure reloaded UFW.
However.....I still see the same IP addresses that supposed to be blocked hitting the website.
So, why is UFW not blocking those IP addresses?
Any help is much appreciated!


sudo ufw deny from xxx.xxx.xxx.0/24 to any
The rule has been added at the beginning and is now rule #1 in UFW.
So there is nothing wrong in regards to the order of it being processed.
I have for good measure reloaded UFW.
However.....I still see the same IP addresses that supposed to be blocked hitting the website.
So, why is UFW not blocking those IP addresses?
Any help is much appreciated!