UFW permite da sub -rede

sudo ufw allow from 192.168.1.0/24 to any port 22
Namidu