Skip to content

Instantly share code, notes, and snippets.

@zzOzz
Created February 24, 2022 14:46
Show Gist options
  • Save zzOzz/18b995bc010b129c17175e1c183c28db to your computer and use it in GitHub Desktop.
Save zzOzz/18b995bc010b129c17175e1c183c28db to your computer and use it in GitHub Desktop.
ipset -N tor iphash
curl 'https://check.torproject.org/torbulkexitlist?ip=' | xargs -n 1 ipset -A tor
iptables -A INPUT -m set --match-set tor src -j DROP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment