either you save all the ips in a text file like this
route add -host xxx.xxx.xxx.xxx reject
route add -host xxx.xxx.xxx.xxx reject
route add -host xxx.xxx.xxx.xxx reject
and copy paste in terminal on reboot.

or better still use fail2ban to automatically ban the offending IPs automatically.