?

Log in

No account? Create an account

April 19th, 2015

Настройки tor-а

SocksPort 9050
Log notice file /tmp/torlog
VirtualAddrNetwork 10.192.0.0/10
AutomapHostsOnResolve 1
TransPort 9040
TransListenAddress 192.168.10.1
DNSPort 9053
DNSListenAddress 192.168.10.1
RunAsDaemon 1
DataDirectory /tmp/.tordb
AvoidDiskWrites 1

Настройки iptables

ipset -N rosfuck iphash
iptables -t nat -A PREROUTING -d ! 192.168.10.0/24 -p tcp --syn -j REDIRECT -m set --set rosfuck dst --to-ports 9040


Заполняем список ip из

cat sites_all.rkn | xargs -n30 -P15 dig | grep -E "[^;].*IN[[:space:]]+A" | awk '{print $5}' | grep -v "^[[:space:]]*$" | xargs -n1 ipset -A rosfuck

Список сайтов заполняем из

wget -q --no-check-certificate -O -  "https://raw.githubusercontent.com/zapret-info/z-i/master/dump.csv" | awk -F";" '{print $2}' | sort | uniq >sites_all.rkn