It is easy to block everything in the first octet, e.g.
64.233.160.0 – 64.233.160.255
with one single ip route command.
However, how do you block over two octets without issuing a separate command for every change in second octet ?
E.g., is there a single “ip route” command that will block all the addresses in the following range ?
64.233.160.0 – 64.233.191.255
I can do this with ip-tables, but ip tables becomes impossible to manage after it grows so I prefer an “ip route” option as answer as I have better ways to manage large amount of entries.