-
-
Save Euphillya/0d60cddf1a94fd640c69b9c3df368c28 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
#!/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