How do I block a range of IP addresses on my Macbook?

I’ve found many answers explaining how to block single IP addresses, but not an entire range (I’m specifically trying to block 17.0.0.0/8)

I’m running MacOSX 10.15.7