Skip to content

Instantly share code, notes, and snippets.

@corin12355
Last active January 29, 2021 19:40
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save corin12355/6157378 to your computer and use it in GitHub Desktop.
Save corin12355/6157378 to your computer and use it in GitHub Desktop.
#!/bin/bash
url='http://torstatus.blutmagie.de/ip_list_exit.php/Tor_ip_list_EXIT.csv'
iptables -F TOR_NODES
iptables -I TOR_NODES -j RETURN
for node in `wget -q --no-check-certificate -O - $url | sort | uniq`; do
iptables -I TOR_NODES -s $node -j DROP
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment