Last active
August 29, 2015 13:57
-
-
Save wico/9467748 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DROP="`wget -qO- http://www.spamhaus.org/drop/drop.txt`";for i in `echo $DROP|egrep -o "[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/[0-9]{1,3}"|sort -n`; do route add -net $i reject; done;EDROP="`wget -qO- http://www.spamhaus.org/drop/edrop.txt`";for i in `echo $EDROP|egrep -o "[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/[0-9]{1,3}"|sort -n`; do route add -net $i reject; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fetches fresh rules, applies them - only using bash, wget, egrep, sort and route. No disk access - good for small routers.