Maybe you can start from the Web UI: Server > Firewall > Add rule. You can input many different IP addresses in CIDR format.
You can try using a CIDR calculator https://www.ipaddressguide.com/cidr As for which ports to block, 0-65535 would be an option if you want to completely block hosts. Hope this helps.