diff options
Diffstat (limited to 'contrib/tor2dns')
-rw-r--r-- | contrib/tor2dns/tor2dns/README | 43 | ||||
-rwxr-xr-x | contrib/tor2dns/tor2dns/run | 13 | ||||
-rwxr-xr-x | contrib/tor2dns/tor2dns/serve | 9 |
3 files changed, 65 insertions, 0 deletions
diff --git a/contrib/tor2dns/tor2dns/README b/contrib/tor2dns/tor2dns/README new file mode 100644 index 0000000..4379a98 --- /dev/null +++ b/contrib/tor2dns/tor2dns/README @@ -0,0 +1,43 @@ +DESCRIPTION: + tor2dns is a quick solution to non-free + and centralized dns. + +DEPENDS: + tor, daemontools, python + +INSTALL: + +mkdir /var/lib/tor/tor2dns +echo 'HiddenServiceDir /var/lib/tor/tor2dns' >> /etc/tor/torrc +echo 'HiddenServicePort 8053 127.0.0.1:8053' >> /etc/tor/torrc + +#See note below, you may need to use the commented line. +#chown debian-tor /var/lib/tor/tor2dns + +/etc/init.d/tor restart +mkdir /services/tor2dns +tar -xvf tor2dns.tgz --directory='/services' +cd / +ln -s /services/tor2dns /service +echo 'new dns link >>> http://'`cat /var/lib/tor/tor2dns/hostname`':8053' + +UPDATE: + +# pull a copy using tor +usewithtor wget http://nbafkr7odek2wh6r.onion/peer2anonet.tgz + +# pull a copy from AnoNet2 +wget http://d3v11.ano/peer2anonet.tgz + + +POST INSTALL: + You will want to make sure port fowarding is turned on, on + port 8053 of your router, you may also need to adjust your + firewall. you can test for success by opening your browser + with tor enabled and going to the link given @ the end of + your installation. :-) enjoy. + +NOTE: + On some systems /var/lib/tor/tor2dns will need a special owner + like "debian-tor". If tor2dns fails for you please troubleshoot + your logs, port fowarding, etc. diff --git a/contrib/tor2dns/tor2dns/run b/contrib/tor2dns/tor2dns/run new file mode 100755 index 0000000..1e543a9 --- /dev/null +++ b/contrib/tor2dns/tor2dns/run @@ -0,0 +1,13 @@ +#!/bin/bash +GETIP() { + while true; do + wget 'http://www.showmyip.com/simple/' -O index.html + sleep 5h + done + } + +[ -e SHARE ] || mkdir SHARE +cd SHARE +../serve & +GETIP + diff --git a/contrib/tor2dns/tor2dns/serve b/contrib/tor2dns/tor2dns/serve new file mode 100755 index 0000000..0274b74 --- /dev/null +++ b/contrib/tor2dns/tor2dns/serve @@ -0,0 +1,9 @@ +#!/usr/bin/python +import SimpleHTTPServer +import SocketServer + +PORT = 8053 + +Handler = SimpleHTTPServer.SimpleHTTPRequestHandler +httpd = SocketServer.TCPServer(("", PORT), Handler) +httpd.serve_forever() |