Blocking Traffic Using Null Route

Blocking network traffic for a specific host without using iptables:
ip route add blackhole 10.0.0.1/32
To remove the rule:
ip route del blackhole 10.0.0.1/32
Compared to iptables a null route has no effect on loopback addresses (127.0.0.0/8).

No comments:

Post a Comment