Breaking Systems For Fun And Profit

Advanced Routing Optimization

Routing lookups taking too long? Network link saturated? Use this one!

  ip rule add to 0.0.0.0/0 unreachable

What it does

This one adds a (temporary) policy based routing rule. This rules says: “For packets destined for 0.0.0.0/0 (the entire IPV4 address space), return a destination unreachable error.

Why it works

If packets don’t get routed, they won’t saturate your link!

TL;DR