Home > sysadmin > Null routing

Null routing

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

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
done

Categories: sysadmin
  1. No comments yet.
  1. No trackbacks yet.

Leave a comment