Archive for March, 2015

Null routing

March 18, 2015 Leave a comment

You can null route an offending IP address by this command:
ip route add blackhole where is the offending ip address.
To remove the null route use ip route delete

To add a number of IP addresses from a BLACKLIST you can use the script below.

## Null route BLACKLIST
for x in `$BLACKLIST`;
echo “Null routing $x…”
ip route add blackhole $x

Categories: sysadmin