Skip to content

Instantly share code, notes, and snippets.

@Euphillya
Forked from corin12355/Drop.sh
Created January 29, 2021 19:40
Show Gist options
  • Save Euphillya/0d60cddf1a94fd640c69b9c3df368c28 to your computer and use it in GitHub Desktop.
Save Euphillya/0d60cddf1a94fd640c69b9c3df368c28 to your computer and use it in GitHub Desktop.
#!/bin/bash
url='https://raw.githubusercontent.com/freewil/tor-exits/master/test/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