По ЭТОЙ ссыли инструкция по установке на CentOS,
Я лишь переделал скрипт под Debian
#!/bin/sh
# the full path of the file we create
filename=/www/addTorIPs.rsc
# remove the comment if you want to use the List of All Current Tor Server IP Addresses
url=http://torstatus.blutmagie.de/ip_list_all.php/Tor_ip_list_ALL.csv
# remove the comment if you want to use the List of All Current Tor Server Exit Node IP Addresses
#url=http://torstatus.blutmagie.de/ip_list_exit.php/Tor_ip_list_EXIT.csv
echo "# This scrip adds Tor IP addresses to an address-list (list created: $(date))" > $filename
echo "/ip firewall address-list" >> $filename
/usr/bin/wget -q -O - $url | sort -u | /usr/bin/gawk --posix '/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/ { print "add list=TorList dynamic=yes address="$1" " ;}' >> $filename
а так же вместо awk использовал gawk...