Skip to main content

Linux Networking

Routing

null route (blackhole)

ip route
ip route add blackhole 10.1.2.199
130 ip route add blackhole 10.1.2.199/10/24
ip route 
ip route del blackhole 10.1.2.199

130

null route an ip list

for string in $(cat ips.txt); do ip route add blackhole $string; done