I thought to a fast way to get an IP CIDR
Code:
$ whois 173.208.249.226 |grep 'CIDR:'|cut -d':' -f2|sed -e 's/^/ufw deny from /g' -e 's/ / /g' -e 's/$/ to any;/g'
#returns
ufw deny from 173.208.249.224/29 to any;
ufw deny from 173.208.128.0/17 to any;
Use the smaller CIDR (narrower) of just the ip's if you dont want to block the whole datacenter (/18 to /24)
