From 41f2cb1a2dfa1d2542593cff8fb1075849458564 Mon Sep 17 00:00:00 2001 From: d3v11 Date: Mon, 19 Sep 2011 20:16:17 -0500 Subject: added tor2dns to resdb in contrib --- contrib/tor2dns/tor2dns/README | 34 ++++++++++++++++++++++++++++++++++ contrib/tor2dns/tor2dns/run | 13 +++++++++++++ contrib/tor2dns/tor2dns/serve | 9 +++++++++ contrib/tor2dns/tor2dns/wimi.com | 1 + 4 files changed, 57 insertions(+) create mode 100644 contrib/tor2dns/tor2dns/README create mode 100755 contrib/tor2dns/tor2dns/run create mode 100755 contrib/tor2dns/tor2dns/serve create mode 100644 contrib/tor2dns/tor2dns/wimi.com (limited to 'contrib/tor2dns') diff --git a/contrib/tor2dns/tor2dns/README b/contrib/tor2dns/tor2dns/README new file mode 100644 index 0000000..75a1ebe --- /dev/null +++ b/contrib/tor2dns/tor2dns/README @@ -0,0 +1,34 @@ +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.tar.gz --directory='/services' +cd / +ln -s /services/tor2dns /service +echo 'new dns link >>> http://'`cat /var/lib/tor/tor2dns/hostname` + +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..087f7aa --- /dev/null +++ b/contrib/tor2dns/tor2dns/run @@ -0,0 +1,13 @@ +#!/bin/bash +GETIP() { + while true; do + wget `cat ../wimi.com` -O index.html + sleep 5m + 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() diff --git a/contrib/tor2dns/tor2dns/wimi.com b/contrib/tor2dns/tor2dns/wimi.com new file mode 100644 index 0000000..5aae0b9 --- /dev/null +++ b/contrib/tor2dns/tor2dns/wimi.com @@ -0,0 +1 @@ +http://automation.whatismyip.com/n09230945.asp -- cgit v1.2.3 From 89a80a2ce7bb83a1f4d1b685fcf98b331b55aa12 Mon Sep 17 00:00:00 2001 From: d3v11 Date: Sat, 24 Sep 2011 08:35:38 -0500 Subject: fixed tor2dns --- contrib/peer2anonet.tgz | Bin 61440 -> 0 bytes contrib/tor2dns/tor2dns/README | 2 +- contrib/tor2dns/tor2dns/run | 8 ++++---- contrib/tor2dns/tor2dns/wimi.com | 1 - 4 files changed, 5 insertions(+), 6 deletions(-) delete mode 100644 contrib/peer2anonet.tgz delete mode 100644 contrib/tor2dns/tor2dns/wimi.com (limited to 'contrib/tor2dns') diff --git a/contrib/peer2anonet.tgz b/contrib/peer2anonet.tgz deleted file mode 100644 index fd07847..0000000 Binary files a/contrib/peer2anonet.tgz and /dev/null differ diff --git a/contrib/tor2dns/tor2dns/README b/contrib/tor2dns/tor2dns/README index 75a1ebe..2610295 100644 --- a/contrib/tor2dns/tor2dns/README +++ b/contrib/tor2dns/tor2dns/README @@ -19,7 +19,7 @@ mkdir /services/tor2dns tar -xvf tor2dns.tar.gz --directory='/services' cd / ln -s /services/tor2dns /service -echo 'new dns link >>> http://'`cat /var/lib/tor/tor2dns/hostname` +echo 'new dns link >>> http://'`cat /var/lib/tor/tor2dns/hostname`':8053' POST INSTALL: You will want to make sure port fowarding is turned on, on diff --git a/contrib/tor2dns/tor2dns/run b/contrib/tor2dns/tor2dns/run index 087f7aa..1e543a9 100755 --- a/contrib/tor2dns/tor2dns/run +++ b/contrib/tor2dns/tor2dns/run @@ -1,10 +1,10 @@ #!/bin/bash GETIP() { - while true; do - wget `cat ../wimi.com` -O index.html - sleep 5m + while true; do + wget 'http://www.showmyip.com/simple/' -O index.html + sleep 5h done - } + } [ -e SHARE ] || mkdir SHARE cd SHARE diff --git a/contrib/tor2dns/tor2dns/wimi.com b/contrib/tor2dns/tor2dns/wimi.com deleted file mode 100644 index 5aae0b9..0000000 --- a/contrib/tor2dns/tor2dns/wimi.com +++ /dev/null @@ -1 +0,0 @@ -http://automation.whatismyip.com/n09230945.asp -- cgit v1.2.3 From ce880d5d06fb9c15860edbfdaf6fb7c94600f6e0 Mon Sep 17 00:00:00 2001 From: d3v11 Date: Sat, 24 Sep 2011 09:34:09 -0500 Subject: fixed tar.gz to tgz on install instructions. --- contrib/tor2dns/tor2dns/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/tor2dns') diff --git a/contrib/tor2dns/tor2dns/README b/contrib/tor2dns/tor2dns/README index 2610295..aa53920 100644 --- a/contrib/tor2dns/tor2dns/README +++ b/contrib/tor2dns/tor2dns/README @@ -16,7 +16,7 @@ echo 'HiddenServicePort 8053 127.0.0.1:8053' >> /etc/tor/torrc /etc/init.d/tor restart mkdir /services/tor2dns -tar -xvf tor2dns.tar.gz --directory='/services' +tar -xvf tor2dns.tgz --directory='/services' cd / ln -s /services/tor2dns /service echo 'new dns link >>> http://'`cat /var/lib/tor/tor2dns/hostname`':8053' -- cgit v1.2.3 From 7e9b314b9535d1579f09b7a9dad3bfa3119c2d6d Mon Sep 17 00:00:00 2001 From: d3v11 Date: Sat, 24 Sep 2011 09:50:54 -0500 Subject: modified tor2dns README --- contrib/tor2dns/tor2dns/README | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'contrib/tor2dns') diff --git a/contrib/tor2dns/tor2dns/README b/contrib/tor2dns/tor2dns/README index aa53920..4379a98 100644 --- a/contrib/tor2dns/tor2dns/README +++ b/contrib/tor2dns/tor2dns/README @@ -21,6 +21,15 @@ 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 -- cgit v1.2.3