reglas-iptables/tor-block.sh

5 lines
192 B
Bash

#!/bin/bash
url="https://check.torproject.org/torbulkexitlist"
wget -q "$url" -O /tmp/.tor.lst
while read -r ipTor; do echo "$ipTor"; iptables -A INPUT -s $ipTor -j DROP; done < /tmp/.tor.lst