Recent articles (showing 1-10 out of 69):
Ok Karl... Null routing – real easy 🙂
If you wanted to null route a single IP (192.168.0.1), you would run (as root):
/sbin/route add 192.168.0.1 127.0.0.1 -blackhole Copy
If you wanted to null route a block of IPs (192.168.0.0/24), then use:
/sbin/route add -net 192.168.0.0/24 127.0.0.1 -blackhole Copy
If you would rather generate a "Destination Host Unreachable" ICMP response instead of blackholing the traffic, replace -blackhole with -reject