I know how to add all from a 111.222.63.xx:
sudo ufw allow from 111.222.63.0/24
But say I want to allow all from 111.222.xxx.xxx so all from 111.222.1.X all from 111.222.2.x, etc. How would would I do that, I tried all sorts of combinations, but none seem to work.