Trying to set a server for a small business. They allocated a set of ranges of IP addresses for different departments, and want to give departments access so by IP address.
So the accounting department is 10.0.1.30 to 10.0.1.60
I would like to make a UFW entry to demonstrate this without having to entre 30 entries manually.
Would love a simple one line entry that would cover the range I need like (although I know it does not work):Code:sudo ufw deny from 10.0.1.1/24 to any port 631 sudo ufw allow from 10.0.1.30 to any port 631 sudo ufw allow from 10.0.1.31 to any port 631 sudo ufw allow from 10.0.1.32 to any port 631 ...
Any help would be appreciated.Code:sudo ufw allow from 10.0.1.30-50 to any port 631



Adv Reply


Bookmarks