Closed mhio closed 2 years ago
I integrated your PR, fixed few issues incl. IPv6, see 4bd9c42dbf58bb5bc4edc46088cdc2901a086f86.
@mhio, can you test from head to check it works for you? https://raw.githubusercontent.com/brona/iproute2mac/master/src/ip.py
ip route add blackhole [CIDR]
equates toroute add [CIDR] 127.0.0.1 -blackhole
I couldn't figure out a way to run it without the destination gateway, so gave it localhost.