Skip to main content

Linux Networking

Routing

null route (blackhole)

ip route
ip route add blackhole 10.1.2.130
ip route add blackhole 10.1.2.10/24
ip route del blackhole 10.1.2.130

null route an ip list

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