It is easy to block everything in the first octet, e.g.
220.127.116.11 – 18.104.22.168
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 ?
22.214.171.124 – 126.96.36.199
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.